Advertisement
mightyroot

GRE Tunnel script

Sep 24th, 2011
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #! /bin/sh
  2.  
  3. # Configurable options:
  4. echo > 1 /proc/sys/net/ipv4/ip_forward
  5. /sbin/modprobe ip_nat_ftp
  6. /sbin/modprobe ip_conntrack_ftp
  7. #insmod /lib/modules/2.6.18-4-686/kernel/net/ipv4/ipip.ko
  8. #insmod /lib/modules/2.6.18-4-686/kernel/net/ipv4/ip_gre.ko
  9.  
  10. start ()
  11. {
  12. ip tunnel add netFB mode gre remote 89.X.X.X local 89.X.X.X ttl 255
  13. ip link set netFB up
  14. ip addr add 192.168.1.4 dev netFB
  15. ip route add 192.168.2.0/24 dev netFB
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement