socket / bind - specific address



The situation is as follows:

We have a couple of FreeBSD routers, with RFC1918 addresses on the
ethernets and a public address on the loopback. This works fine for
connecting to the routers, but is problematic for locally originated
outgoing traffic (think NTP, think syslog): it takes the IP address
of the outgoing interface, which is the RFC1918 address.

Is there a way (sysctl, kernel option) to define which IP address
is used for locally originated outgoing traffic?

Edwin

--
Edwin Groothuis | Personal website: http://www.mavetju.org
edwin@xxxxxxxxxxx | Weblog: http://weblog.barnet.com.au/edwin/
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: socket / bind - specific address
    ... We have a couple of FreeBSD routers, ... One way is to run your daemon (ntpd, syslogd etc) within a jail, and give ... the jail your public loopback as its IP address. ...
    (freebsd-net)
  • Re: socket / bind - specific address
    ... We have a couple of FreeBSD routers, ... think syslog): ... One way is to run your daemon within a jail, and give ... the jail your public loopback as its IP address. ...
    (freebsd-net)
  • Re: socket / bind - specific address
    ... We have a couple of FreeBSD routers, ... ethernets and a public address on the loopback. ... If you want to reach the box via a public IP and are using 1-to-1 NAT ... translation to deliver the traffic to one of your NICs using unroutable RFC-1918 ...
    (freebsd-net)