Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 06-15-2012, 05:16 PM   #1
LQ Newbie
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
redirect all internet traffic to another server using gre tunnel

Hi everyone, first thanks for this great forum. I learned a lot here and just reading solved a lot of problems I had with networking.

Ok so I have a problem with gre tunnels wich is not working the way I want.

Ok so I want to take all internet traffic from a dedicated I have and forward it to another server I have.

eth0 =>
eth0:1 =>

eth0 =>

I want to send all traffic coming into to SERVER B and be able to use this ip on server B to bind services.

So I added a gre tunnel between those two servers:

iptunnel add tunX mode gre remote local ttl 225
ifconfig tunX
ifconfig tunX up

iptunnel add tunX mode gre remote local ttl 225
ifconfig tunX
ifconfig tunX up
ip add add dev eth0

Great so I can ping the SERVER B from SERVER A and vice versa

But the thing I tried with routes after is that all traffic coming to goes into tunnel and all services on the SERVER B are reachable when I connect to (ssh / http / etc)

Can someone help me please this I'm trying to get rid of this problem for 2 days now.

Thanks a lot


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Keep Alive GRE Tunnel gmarzilli Linux - Networking 0 01-19-2010 07:47 AM
GRE tunnel nima0102 Linux - Networking 1 07-28-2009 01:12 PM
Gre Tunnel Questions mhunter Linux - Networking 2 07-18-2007 12:17 PM
gre tunnel problem sixone Linux - Networking 3 05-30-2005 11:57 AM
Tunnel all internet traffic through a ssh connected remote computer Bateman Linux - Networking 12 12-10-2004 05:53 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration