LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-30-2008, 04:47 AM   #1
sunlinux
Member
 
Registered: Feb 2006
Distribution: RHCL 5
Posts: 239

Rep: Reputation: 30
routing with NAT


Setup:
1.
------192.-168.123.5---eth0(LAN)----linux with NAT---eth1(internet)


2. A wirelss router is connected to our VPN server

------LAN Port ip192.168.123.7 (wireless router)----Port WAN--- VPN ip server .

I want to connect that vpn network thru my linux server above.

client machin: 192.168.123.4 gw 192.168.123.5

I have added route in linux server:

network: 192.168.10.* gw 192.168.123.7

but I could not access vpn ips.

Pls. help
 
Old 06-30-2008, 10:07 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Did you turn on ip forwarding? cat /proc/sys/net/ipv4/ip_forward; If its a 0 your aren't forwarding through your box. You can turn it on temporarily by doing echo 1 > /proc/sys/net/ipv4/ip_forward

You can turn it on permanently usually by adding a line to your /etc/sysctl.conf (something like net.ipv4.ip_forward=1 or net/ipv4/ip_forward=1). Most distos have good examples and possibly even a forward option already in there that just needs to be uncommented.
 
Old 06-30-2008, 11:45 PM   #3
sunlinux
Member
 
Registered: Feb 2006
Distribution: RHCL 5
Posts: 239

Original Poster
Rep: Reputation: 30
Hi it's enabled already..but not working
 
Old 07-01-2008, 06:16 PM   #4
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
The next thing to check is where the vpn ips are sending 192.168.123.0/24 traffic. I'd bet they are sending it out their default route and that their default route is not the same box that has the 192.168.123.7 ip.

192.168.123.4 -> 192.168.123.5 -> 192.168.123.7 -> (some vpn ip) -> ????

The packets are getting there, they just aren't coming back is what I'm guessing.
 
  


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
Two-way NAT routing MPowers Linux - Networking 3 06-24-2005 03:24 PM
nat routing vaat Linux - Networking 11 02-16-2005 10:02 AM
routing through nat booyah Linux - Networking 3 01-17-2004 08:40 PM
real routing under nat routing nothingmuch Linux - Networking 4 10-27-2003 03:11 PM
Routing and nat Morning_Star Linux - Networking 5 02-11-2003 11:31 AM

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

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