LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-18-2015, 03:26 PM   #1
mra707
LQ Newbie
 
Registered: Mar 2015
Posts: 7

Rep: Reputation: Disabled
gre/ipv6 tunnels not working ovh kimsufi


hello,

i am trying to set up a gre tunnel on my kimsufi server. Unfortunately their stock kernel did not support it, so i installed my own kernel. what ive done is install the stock debian 7 kernel with apt, then use the config to compile my own 3.2.68 grsec kernel.

i have a vps that was being used to tunnel to an ubuntu 14 server w/ grsec at volumedrive, and everything worked fine.

i have followed the basic steps of:

iptunnel add gre1 mode gre local 198.245.51.x remote 185.62.188.x ttl 255
ip addr add 192.168.120.2/30 dev gre1
ip link set gre1 up


the tunnel shows up on the vps, with ifconfig showing data being sent.
on the kimsufi ifconfig shows no data sent or received, just the interface.

i have searched and searched and have not found anything on this. i have turned off all iptables rules as well. i tried on the stock kernel, vanilla 3.2.68 kernel, grsec kernel and its the same. I initially thought it was the kernel, but i no longer think so.

any insight? maybe some crazy setting is set thats blocking gre?

this is a fresh debian 7 with ispconfig 3.0.5.4p5 (from kimsufi/ovh's image)

Last edited by mra707; 03-20-2015 at 08:37 PM. Reason: solved issue
 
Old 03-18-2015, 11:03 PM   #2
mra707
LQ Newbie
 
Registered: Mar 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
so i found out this is not related just to gre, but ipv6 as well and probably any other tunnel.

you can see in both interfaces that no data is sent or recieved.



eth0 Link encap:Ethernet HWaddr 00:1e:8c:f1:90:a8
inet addr:198.245.51.x Bcast:198.245.51.255 Mask:255.255.255.0
inet6 addr: 2607:5300:60:61c::1/128 Scope:Global
inet6 addr: fe80::21e:8cff:fef1:90a8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1450 Metric:1
RX packets:1495 errors:0 dropped:0 overruns:0 frame:0
TX packets:2358 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:196163 (191.5 KiB) TX bytes:360598 (352.1 KiB)
Interrupt:20 Memory:fe500000-fe520000

gre1 Link encap:UNSPEC HWaddr C6-F5-33-1C-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.120.2 P-t-P:192.168.120.2 Mask:255.255.255.252
inet6 addr: fe80::200:5efe:c6f5:331c/64 Scope:Link
UP POINTOPOINT RUNNING NOARP MTU:1476 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

he-ipv6 Link encap:IPv6-in-IPv4
inet6 addr: fe80::c6f5:331c/128 Scope:Link
inet6 addr: 2001:470:x:xxx::2/64 Scope:Global
UP POINTOPOINT RUNNING NOARP MTU:1480 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
 
Old 03-20-2015, 08:34 PM   #3
mra707
LQ Newbie
 
Registered: Mar 2015
Posts: 7

Original Poster
Rep: Reputation: Disabled
I solved this issue.

ovh/kimsufi set several sysctl entries in /etc/sysctl.conf in all of their linux distributions.

by commenting out everything below "disable ipv6 autoconf" it will solve this issue, however their stock kernel foes not support gre. You will still have to either install a stock kernel or vanilla kernel. You will need a config file as well since they do not include one in /boot. you can find them at ftp.ovh.net in /made-in-ovh/bzImage

hope this helps someone in the future!
 
  


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 Not Working doctorcisco Linux - Networking 2 04-19-2009 05:29 AM
Gre Tunnel Questions mhunter Linux - Networking 2 07-18-2007 12:17 PM
Question about a GRE Tunnel zerounu Linux - Networking 1 03-09-2004 09:04 AM

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

All times are GMT -5. The time now is 02:01 PM.

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