Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # make the proxy happen
- echo 1 > /proc/sys/net/ipv4/conf/eth1/proxy_arp
- echo 1 > /proc/sys/net/ipv4/conf/eth2/proxy_arp
- # Next 2 lines remove the current routing
- ip route del 24.229.93.40/30 dev eth1
- ip route del 24.229.93.40/30 dev eth2
- # Makes wan the default gateway
- ip route add 24.229.93.41 dev eth1
- # Makes the public IPs available
- ip route add 24.229.93.40/30 dev eth2
- # Creates a chain for filtering
- iptables -N proxy-arp
- # and puts that chain at the beginning of FORWARD
- iptables -I FORWARD -j proxy-arp
- router# route -n
- Kernel IP routing table
- Destination Gateway Genmask Flags Metric Ref Use Iface
- 24.229.93.41 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
- 24.229.93.40 0.0.0.0 255.255.255.252 U 0 0 0 eth2
- 192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
- 24.229.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
- 0.0.0.0 24.229.105.1 0.0.0.0 UG 0 0 0 eth1
Add Comment
Please, Sign In to add comment