NAT and gateway

Petre Bandac petre at
Sun Nov 2 08:07:27 PST 2003

snack% /sbin/ifconfig
	inet 213.157.171.x netmask 0xffffff00 broadcast
	ether 00:02:44:30:dc:4b
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
	inet 213.157.185.x netmask 0xfffffff0 broadcast
	inet netmask 0xffffff00 broadcast
	ether 00:02:44:34:8c:72
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
	inet netmask 0xff000000 

that is what you want to do ?

On Sunday 02 November 2003 02:42 Anno Domini, Doug Poland wrote using one of 
his keyboards:
> Hello,
> I'm running 4.8-STABLE.  I've got a question about NAT and gateway.
> Today, I'm running a typical NAT configuration like this...
> if0 = public_ip
> if1 = private_lan
> Everything is working fine, internal clients use if1 and their gateway
> and their addresses are translated and sent out on if0.
> My question is: can I alias if1 with a public IP and point other
> clients (also with public IP) if1 as their gateway?  In this case, I
> would want if1 to route to if0 and have their public IPs remain intact.
> I'm asking this as a questions because I've just tried it and packets
> are not routing from if1 to if0.
> Many thanks for your help.

Login: petre          			Name: Petre Bandac
Directory: /home/petre              	Shell: /usr/local/bin/zsh
On since Sun Nov  2 12:51 (EET) on ttyv0, idle 5:15 (messages off)
No Mail.
No Plan.

More information about the freebsd-questions mailing list