How do I set up a GRE tunnel in debian?
Server A
ip tunnel add tun0 mode gre remote 216.152.255.246 local 216.152.255.230 ttl 255 dev eth0
ifconfig tun0 10.0.4.2 netmask 255.255.255.252 pointopoint 10.0.4.1 mtu 1400 up
Server B
ip tunnel add tun0 mode gre local 216.152.255.246 remote 216.152.255.230 ttl 255 dev eth0
ifconfig tun0 10.0.4.1 netmask 255.255.255.252 pointopoint 10.0.4.2 mtu 1400 up
ifconfig eth0:10 173.249.254.2 netmask 255.255.255.0
Server A
ip route add 173.249.254.2 via 10.0.4.2 dev tun0
The IP 173.249.254.2 is routed to Server A. I am trying to route this to server B.
You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.
M$2 Answers
Server A
ip tunnel add tun0 mode able to bremote 216.152.255.246 local 216.152.255.230 ttl 255 dev eth0
ifconfig tun0 10.0.4.2 netmask 255.255.255.252 pointopoint 10.0.4.1 mtu 1400 up
Server B
ip tunnel add tun0 mode other.< gre local 216.152.255.246 remote 216.152.255.230 ttl 255 dev eth0
ifconfig tun0 10.0.4.1 netmask 255.255.255.252 pointopoint 10.0.4.2 mtu 1400 up
ifconfig eth0:10 173.249.254.2 netmask 255.255.255.0
Server A
ip route add 173.249.254.2 via 10.0.4.2 dev tun0
The IP 173.249.254.2 is routed to Server A.
Hope this helps my friend!
You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.
M$This is what I came up with,
http://lartc.org/lartc.html#LARTC.TUNNEL.GRE
A pretty good guide. Try it first.
This is a tutorial on GRE tunneling with SSL.
http://www.net-gyver.com/?p=93
You might want to check this as well,
http://lartc.org/howto/lartc.rpdb.html
Google.
You can leave an optional "tip" with Mahalo's virtual currency, Mahalo Dollars. If you are asking a difficult question that might require some research, or if you'd like a wide variety of feedback, a higher tip often leads to more answers to your question.
M$