Re: restrict implicit binding to interfaces



David Schwartz <davids@xxxxxxxxxxxxx> writes:

Programs don't bind to interfaces. Your question doesn't make any
sense.

You can write a C program that does exactly that.
I agree than most programs don't.

Programs don't listen to networks. Again, your question doesn't make
any sense.

Programs do listen to networks.

You seem to be under the misconception that addresses belong to
interfaces.

ifconfig(1) associates addresses to interfaces.

whole. When you bind to an address, you accept packets sent to that
address regardless of what interface they arrive on.

If you configure an interface to one address, it's won't accept
packets addressed to other (unicast) addresses.

Some systems allow you to create a second address on the same
interface using a 'virtual interface.'

Unless you put the interface into promiscuous mode using a network sniffer.

Otherwise, it
would be impossible to set up a functional router.

Usually interfaces are connected to different networks.


.



Relevant Pages

  • Re: How to Disable Microsoft Networking Port Listeners?
    ... netstat -a shows active listeners on some undefined interface, ... many companies whose networks were being hacked blind, ... > act as an active interface. ... > list what is listening at all anywhere as far as I know. ...
    (microsoft.public.win2000.networking)
  • Re: Easy Cisco routing question
    ... the end unable to ping the hosts on either of the networks. ... interface Ethernet0 ... Try to make the default route on R1 ...
    (comp.dcom.sys.cisco)
  • Re: [SLE] Proper method for forcing 100mb on a gigabit interface.
    ... I am using mii-tool to force the duplex (for some reason I was ... collisions can occur, since all nodes are connected to each other over ... When a fast interface, say 1 Gbps, ... What kind of switch are you using to connect these networks? ...
    (SuSE)
  • Re: Using IPFW/NAT with multiport PCI cards
    ... You can also have rules between your networks as well... ... I've used a different interface. ... isn't coming in via the main external interface, ...
    (freebsd-questions)
  • Re: ipfw/natd/3 nic
    ... public ip to alias to the outside interface. ... > I decided to try to do a 3 nic ipfw/natd setup. ... > I have 2 internal networks that I'll term ... > Cheaper, Faster, Better, pick any two. ...
    (freebsd-net)