LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-15-2013, 03:45 PM   #1
raducu1605
LQ Newbie
 
Registered: Feb 2009
Posts: 7

Rep: Reputation: 0
2 ip tunnels to 1 server


I made 2 vpn tunnels using gre between 3 machines: one tunnel between m1 and m2, the second tunnel between m3 and m2
My problem is that only the first tunnel is working, the second not.

The facts:

m1 internal ip 192.168.1.xxx, external ip xxx.xxx.xxx.xxx
m2 internal ip 192.168.2.xxx, external ip yyy.yyy.yyy.yyy
m3 internal ip 192.168.3.xxx external ip zzz.zzz.zzz.zzz

on m2 I have:

ip tunnel add tunnel1 mode gre remote xxx.xxx.xxx.xxx local yyy.yyy.yyy.yyy ttl 255
ifconfig tunnel1 192.168.2.x pointopoint 192.168.1.x up
route add -net 192.168.1.0/24 gw 192.168.1.x dev tunnel1
+
ip tunnel add tunnel2 mode gre remote zzz.zzz.zzz.zzz local yyy.yyy.yyy.yyy ttl 255
ifconfig tunnel2 192.168.2.x pointopoint 192.168.3.x up
route add -net 192.168.3.0/24 gw 192.168.3.x dev tunnel2


on m1 I have:
ip tunnel add t1 mode gre remote yyy.yyyy.yyy.yyy local xxx.xxx.xxx.xxx ttl 255
ifconfig t1 192.168.1.x pointopoint 192.168.2.x up
route add -net 192.168.2.0/24 gw 192.168.2.x dev t1

on m3 I have:
ip tunnel add t2 mode gre remote yyy.yyyy.yyy.yyy local zzz.zzz.zzz.zzz ttl 255
ifconfig t2 192.168.3.x pointopoint 192.168.2.x up
route add -net 192.168.2.0/24 gw 192.168.2.x dev t2

What is wrong with tunnel2 ?
 
Old 03-18-2013, 02:20 PM   #2
raducu1605
LQ Newbie
 
Registered: Feb 2009
Posts: 7

Original Poster
Rep: Reputation: 0
finally, I managed to find the solution. ..... was a firewall problem

topic can be closed.
 
  


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
Need help with 6to4 tunnels SkyHiRider Linux - Networking 0 11-15-2010 03:54 AM
Can SSH into server but have trouble using tunnels as proxy rhololkeolke Linux - Networking 2 08-19-2008 03:58 AM
Server Defined SSH Tunnels dlublink Linux - Software 1 09-29-2005 08:11 PM
Mindterm tunnels treotan Linux - Software 0 04-26-2005 03:06 AM


All times are GMT -5. The time now is 01:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration