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

Notices


Reply
  Search this Thread
Old 06-15-2012, 05:16 PM   #1
Night_Fall
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.

SERVER A:
eth0 => 69.195.147.2
eth0:1 => 69.195.147.3

SERVER B:
eth0 => 64.79.86.82


I want to send all traffic coming into 69.195.147.3 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:

SERVER A:
iptunnel add tunX mode gre remote 64.79.86.82 local 69.195.147.2 ttl 225
ifconfig tunX 10.0.201.1/24
ifconfig tunX up

SERVER B:
iptunnel add tunX mode gre remote 69.195.147.2 local 64.79.86.82 ttl 225
ifconfig tunX 10.0.201.2/24
ifconfig tunX up
ip add add 69.195.147.3 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 69.195.147.3 goes into tunnel and all services on the SERVER B are reachable when I connect to 69.195.147.3 (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
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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