Guest User

Untitled

a guest
Oct 20th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. # make the proxy happen
  2. echo 1 > /proc/sys/net/ipv4/conf/eth1/proxy_arp
  3. echo 1 > /proc/sys/net/ipv4/conf/eth2/proxy_arp
  4.  
  5. # Next 2 lines remove the current routing
  6. ip route del 24.229.93.40/30 dev eth1
  7. ip route del 24.229.93.40/30 dev eth2
  8.  
  9. # Makes wan the default gateway
  10. ip route add 24.229.93.41 dev eth1
  11. # Makes the public IPs available
  12. ip route add 24.229.93.40/30 dev eth2
  13.  
  14.  
  15. # Creates a chain for filtering
  16. iptables -N proxy-arp
  17. # and puts that chain at the beginning of FORWARD
  18. iptables -I FORWARD -j proxy-arp
  19.  
  20.  
  21.  
  22. router# route -n
  23. Kernel IP routing table
  24. Destination Gateway Genmask Flags Metric Ref Use Iface
  25. 24.229.93.41 0.0.0.0 255.255.255.255 UH 0 0 0 eth1
  26. 24.229.93.40 0.0.0.0 255.255.255.252 U 0 0 0 eth2
  27. 192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
  28. 24.229.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
  29. 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