digitalcove's Avatar
digitalcove 1
2 Asked
0 Answered
0 Best
4
No one has voted on this question yet :(
1 year, 5 months ago

How do I set up a GRE tunnel in debian?

I've tried setting up a tunnel on Debian and am not able to bind IPs from the one server to the other.

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.
Tip for best answer: M$60.04
Separate topics with commas, or by pressing return. Use the delete or backspace key to edit or remove existing topics.

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$

What is Your Answer?

0
0
0

2 Answers

0
roma's Avatar
roma | 1 year, 5 months ago
8
Try this:

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$

Report Abuse

Post Reply Cancel
0
the_enlightenment's Avatar
the_enlightenment | 1 year, 5 months ago
2
Did you try Google? :)

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
source(s):
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$

Report Abuse

Post Reply Cancel

Learn Guitar

Taught by Jen Trani, YouTube's most popular guitar teacher, Learn Guitar will have you on your way to becoming a guitar hero in under an hour!

Learn GarageBand

Through 81 video lessons, audio expert Joey Biagas will teach you to master Apple's popular GarageBand desktop software. You'll be recording like a pro-- in only 30 days.

Learn Pilates

Lose weight and tone muscle all from the comfort of your home. Certified pilates instructor Jamie Rutt will teach you the moves while you work at your own pace.