LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-04-2012, 01:05 PM   #1
seccentral
LQ Newbie
 
Registered: Mar 2011
Distribution: Linux mint
Posts: 26

Rep: Reputation: 0
linux gre nat problem with traffic forwarding


[home net] -> (eth0)[centos router](eth1) -> [isp] -> office

home-net: 192.168.0.0/24
isp network: 10.11.0.0/24

office net: 10.11.221.0/24

the centos router does nat for my home pcs and i wanted a nice gre tunnel to the office, so i ssh into both centos and office router, setup tun interfaces, assign ip addresses etc, ping test, both hosts(centos router and office router) can ping each other's gre tun interfaces.
my router's gre endpoint ip address is 10.0.0.1
office router's gre endpoint ip addr is 10.0.0.2

however, when i try to ping hosts at the office from within my [home net] i get timeouts, but if i try to ping the local gre endpoint it works.
example:
user@192.168.0.100 : ping 10.11.221.5 -> times out. >
user@192.168.0.100 : ping 10.0.0.1 -> works \m/
user@192.168.0.100 : ping 10.0.0.2 -> phails

i'm not sure i understand why my centos box doesn't forward packets from my home net through the gre and back again.

err... yes, isp does natting and i do natting too. so home boxes are behind 2 nats but i dont care.

PS: i can't add a 'gre' tag to this thread lol

Last edited by seccentral; 06-04-2012 at 01:06 PM.
 
Old 06-04-2012, 11:40 PM   #2
Lexus45
Member
 
Registered: Jan 2010
Distribution: Debian, Centos, Ubuntu, Slackware
Posts: 361
Blog Entries: 3

Rep: Reputation: 48
try to load the 'nf_conntrack_pptp' and 'nf_conntrack_proto_gre' module. maybe 'nf_nat_proto_gre'
Inspect all available gre and pptp modules with 'modprobe -l | grep pptp' anf 'modprobe -l | grep gre'
 
1 members found this post helpful.
Old 06-06-2012, 02:04 AM   #3
seccentral
LQ Newbie
 
Registered: Mar 2011
Distribution: Linux mint
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
[root@x-router ~]# modprobe -l | grep gre
kernel/drivers/media/rc/keymaps/rc-pinnacle-grey.ko
kernel/net/sched/sch_gred.ko
kernel/net/sched/sch_ingress.ko
kernel/net/netfilter/nf_conntrack_proto_gre.ko
kernel/net/ipv4/netfilter/nf_nat_proto_gre.ko
kernel/net/ipv4/ip_gre.ko
and

Quote:
[root@x-router ~]# modprobe -l | grep pptp
kernel/net/netfilter/nf_conntrack_pptp.ko
kernel/net/ipv4/netfilter/nf_nat_pptp.ko

and on the remote office box:
Quote:
[root@thor ~]# modprobe -l | grep gre
/lib/modules/2.6.31.1-ddnet-v0.3/kernel/net/ipv4/ip_gre.ko
/lib/modules/2.6.31.1-ddnet-v0.3/kernel/net/netfilter/nf_conntrack_proto_gre.ko
/lib/modules/2.6.31.1-ddnet-v0.3/kernel/net/ipv4/netfilter/nf_nat_proto_gre.ko
/lib/modules/2.6.31.1-ddnet-v0.3/kernel/net/sched/sch_gred.ko
/lib/modules/2.6.31.1-ddnet-v0.3/kernel/net/sched/sch_ingress.ko
[root@thor ~]# modprobe -l | grep pptp
/lib/modules/2.6.31.1-ddnet-v0.3/kernel/net/netfilter/nf_conntrack_pptp.ko
/lib/modules/2.6.31.1-ddnet-v0.3/kernel/net/ipv4/netfilter/nf_nat_pptp.ko
still no luck :/

Last edited by seccentral; 06-06-2012 at 02:06 AM.
 
Old 06-06-2012, 02:09 AM   #4
seccentral
LQ Newbie
 
Registered: Mar 2011
Distribution: Linux mint
Posts: 26

Original Poster
Rep: Reputation: 0
oh lord, i had routes to the office internal network set up on my home nat box, but i forgot to put routes to my internal home network on the remote office router box.
now that i've placed them it's all good.

thanks for the module tip tho, it helped.
 
  


Reply



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
Forwarding mail from linux nat sever to exchange server martino Linux - Newbie 1 09-05-2008 09:53 AM
Problem with port forwarding (NAT) on FC 5 heberrdacruz Linux - Networking 49 08-20-2006 12:32 AM
GRE keepalives. How can a SUSE 9.0 Linux box send GRE keepalives? dlef Linux - Networking 1 06-28-2005 12:00 PM
iptables + NAT + Port forwarding problem SirGertrude Linux - Networking 9 05-14-2004 04:02 AM
bizarre nat forwarding problem ignorantliwong Linux - Networking 1 09-04-2003 10:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:57 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