Re: How do I set the source address on a multi-homed host?

2005-02-21 Thread Daniela
the source address on a multi-homed host? Having said that: technically, you specify source addresses for connections by calling bind(2) prior to calling connect(2). If you fail to do this, the operating system will select a source IP address for you. This'll often be the IP

RE: How do I set the source address on a multi-homed host?

2005-02-18 Thread Ted Mittelstaedt
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Daniela Sent: Tuesday, February 15, 2005 1:30 PM To: Jan Grant Cc: Alin-Adrian Anton; [EMAIL PROTECTED] Subject: Re: How do I set the source address on a multi-homed host? Having said

Re: How do I set the source address on a multi-homed host?

2005-02-16 Thread Jan Grant
On Tue, 15 Feb 2005, Daniela wrote: Well, if the OS selects the source IP, can't I just modify the code that selects it? Will this work all the time, or just when the application lets the OS select an address for it? It should just work - that is, the source address for internal packes

Re: How do I set the source address on a multi-homed host?

2005-02-15 Thread Emanuel Strobl
Am Samstag, 12. Februar 2005 16:05 schrieb Daniela: On Friday 11 February 2005 21:27, Alin-Adrian Anton wrote: Daniela wrote: I have two NICs (one inside and one outside interface) with NAT activated. The problem is that every time I establish a connection with a machine on my LAN, it

Re: How do I set the source address on a multi-homed host?

2005-02-15 Thread Nathan Kinkade
On Sun, Feb 13, 2005 at 07:49:05PM +0200, Alin-Adrian Anton wrote: snip I really don't see why you use A-class netmask. It's very probable that a C-class netmask would suffice: They already are using a /24 (class C) network. Take another look at the mask - 0xff00. In any case, the

Re: How do I set the source address on a multi-homed host?

2005-02-15 Thread Daniela
On Sunday 13 February 2005 09:37, Jan Grant wrote: On Sat, 12 Feb 2005, Daniela wrote: Yes, this happens when I connect from my machine (which functions as a router with NAT to allow the other LAN machines connect to the internet) to another LAN machine. When the router establishes a

Re: How do I set the source address on a multi-homed host?

2005-02-13 Thread Jan Grant
On Sat, 12 Feb 2005, Daniela wrote: Yes, this happens when I connect from my machine (which functions as a router with NAT to allow the other LAN machines connect to the internet) to another LAN machine. When the router establishes a connection to another point in the intranet, the source

Re: How do I set the source address on a multi-homed host?

2005-02-13 Thread Jan Grant
On Sun, 13 Feb 2005, Jan Grant wrote: On Sat, 12 Feb 2005, Daniela wrote: Yes, this happens when I connect from my machine (which functions as a router with NAT to allow the other LAN machines connect to the internet) to another LAN machine. When the router establishes a

Re: How do I set the source address on a multi-homed host?

2005-02-13 Thread Alin-Adrian Anton
Daniela wrote: On Saturday 12 February 2005 16:06, Volker Kindermann wrote: Hi Daniela, Yes, this happens when I connect from my machine (which functions as a router with NAT to allow the other LAN machines connect to the internet) to another LAN machine. When the router establishes a connection

Re: How do I set the source address on a multi-homed host?

2005-02-12 Thread Daniela
On Friday 11 February 2005 21:27, Alin-Adrian Anton wrote: Daniela wrote: I have two NICs (one inside and one outside interface) with NAT activated. The problem is that every time I establish a connection with a machine on my LAN, it uses the address of the outside interface as the source

Re: How do I set the source address on a multi-homed host?

2005-02-12 Thread Volker Kindermann
Hi Daniela, Yes, this happens when I connect from my machine (which functions as a router with NAT to allow the other LAN machines connect to the internet) to another LAN machine. When the router establishes a connection to another point in the intranet, the source address used is my official

Re: How do I set the source address on a multi-homed host?

2005-02-12 Thread Daniela
On Saturday 12 February 2005 16:06, Volker Kindermann wrote: Hi Daniela, Yes, this happens when I connect from my machine (which functions as a router with NAT to allow the other LAN machines connect to the internet) to another LAN machine. When the router establishes a connection to

How do I set the source address on a multi-homed host?

2005-02-11 Thread Daniela
I have two NICs (one inside and one outside interface) with NAT activated. The problem is that every time I establish a connection with a machine on my LAN, it uses the address of the outside interface as the source of the packets, which creates problems with my firewall. How do I tell my

Re: How do I set the source address on a multi-homed host?

2005-02-11 Thread Alin-Adrian Anton
Daniela wrote: I have two NICs (one inside and one outside interface) with NAT activated. The problem is that every time I establish a connection with a machine on my LAN, it uses the address of the outside interface as the source of the packets, which creates problems with my firewall. How do

Re: How do I set the source address on a multi-homed host?

2005-02-11 Thread Frank Laszlo
Daniela wrote: I have two NICs (one inside and one outside interface) with NAT activated. The problem is that every time I establish a connection with a machine on my LAN, it uses the address of the outside interface as the source of the packets, which creates problems with my firewall. How do