LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-26-2008, 11:56 AM   #1
Niels@debian
LQ Newbie
 
Registered: Aug 2004
Location: Laval, FR
Distribution: Debian Sarge 2.6.9
Posts: 25

Rep: Reputation: 15
See subnets with OpenVpn/IpTables


Hi everyone,

I've just setup an OpenVPN server at my hosting company and I'm trying to tunnel all my LAN traffic through the server but I can't see the computers on the other subnet. OpenVPN is routed (tun)

Server Public IP : 91.121.19.??/255.255.255.0
Server VPN IP : 10.66.67.1/10.66.67.2 255.255.255.0

Lan Setup:

WRT54GL (OpenWRT) Router as OpenVPN Client:
- Public IP (my provider) : 88.163.41.??/255.255.255.0 gw 88.163.41.254
- LAN IP : 10.66.66.1/255.255.255.0
- VPN IP : 10.66.67.6/10.66.67.5 255.255.255.0 (automatically set)

Test computer:
- LAN IP : 10.66.66.11/255.255.255.0 gw 10.66.66.1


I successfully connect my client (the router) and the server with OpenVPN and I succesfully ping each other with their VPN IP addresses (10.66.67.X) but I can't reach the Server from the test computer and I can't ping the router LAN IP from the Server.

I suspect IPTable on the Router blocking some things but I can't see what is the problem

Could you please tell me which routes/gateways I should have on both sides and the IPTables rules on the OpenVPN Client (the router).

I'm completely lost. Thanks a lot for your help.
 
  


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
Will IPTables w/ NAT conflict w/ OpenVPN? licht Linux - Security 1 07-19-2007 09:22 PM
iptables multiple subnets routing question azdruid Linux - Networking 1 06-28-2006 10:05 AM
Applying iptables rules to multiple subnets eggi Linux - Networking 2 01-04-2006 11:29 PM
iptables block IP subnets bratch Linux - Networking 5 02-07-2005 03:03 AM
Using iptables to only allow certain subnets access ThePlague Linux - Networking 7 12-29-2004 12:11 PM


All times are GMT -5. The time now is 11:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration