All pastes #403837 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-03-20 17:43 UTC
rendered paste body
Public Network (ISP)
		|
swtich/router
		|
firewall
		|
Private Network (LAN)


On the router (by the article):

ifconfig eth0 192.168.0.253 up
ifconfig eth1 192.168.0.254 up
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/conf/proxy_arp
route add -net 192.168.0.0/24 eth0
route add default eth1

On each client machine (by the article):

route add default gw 192.168.0.253 eth0
route add -net 192.168.0.0/24 eth0

--------------------------------------------------

On the router (as I would use it):

ifconfig eth0 192.168.0.253 up
ifconfig eth0:1 192.168.0.254 up
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/conf/proxy_arp
route add -net 192.168.0.0/24 eth0
route add default eth0:1

On each client machine (as I would use it, not counting windows):

route add default gw 192.168.0.253 eth0
route add -net 192.168.0.0/24 eth0