LinuxQuestions.org
Review your favorite Linux distribution.
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 05-14-2008, 11:41 PM   #1
ligerous
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
OpenVPN Bridge... Clients cant ping server or network


Hey everyone,
What I am trying to do is configure OpenVPN in Bridge Mode so I can allow clients to connect to play LAN games over the internet and access files on machines on my network from the internet. I would also like all clients to be able to access the internet through the VPN Connection.

I used the script to bridge from OpenVPN to bridge eth0 (192.168.1.151) with tap0 (192.168.10.1).... ifconfig verifies this.

So far I can get the clients to connect to the OpenVPN server but the clients are unable to access the OpenVPN server or any other servers on the Local network for ping or even just file sharing.

IP Address of the local network: 192.168.1.x
IP Address for the Physical Ethernet Card in the OpenVPN Server: 192.168.1.151
IP Address of the OpenVPN Server: 192.168.10.1
IP Address pool for OpenVPN Clients: 192.168.10.2-192.168.1.12
The OpenVPN Server is running on Fedora 8 OS.

Here is my server config:
Code:
port 1195
proto udp
dev tap0
ca keys/ca.crt
cert keys/server.crt
key keys/server.key
dh keys/dh1024.pem
server 192.168.10.0 255.255.255.128
;mode server
tls-server
client-to-client
keepalive 10 120
comp-lzo
max-clients 10
persist-key
persist-tun
status openvpn-status.log
verb 3
push "redirect-gatway def1"
push "dhcp-option DNS 68.105.28.12"
Client Config:
Code:
client
dev tap
proto udp
remote My IP Address 1195
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
comp-lzo
verb 3
Am I missing something in the configuration file or forgetting to do something? I have been trying for a week to get this to work with no luck TIA
 
Old 05-24-2008, 06:59 PM   #2
rtspitz
Member
 
Registered: Jan 2005
Location: germany
Distribution: suse, opensuse, debian, others for testing
Posts: 307

Rep: Reputation: 33
so you want to span _one_ subnet over 2 physically separated sites right ?

site A (subnet 1) .............server A ---------internet------------ server B ..... site B (subnet 1)

or just let single clients from somewhere gain access to your 192.168.1.x network ?

I think bridged setup only makes sense if all ips are in the same subnet and thus avoid having to set additional routing tables. you should have a look at the routing tables and try which hosts can be pinged from where.

Last edited by rtspitz; 05-24-2008 at 07:00 PM.
 
  


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
Routing Between OpenVPN Clients and Remote Network... sancho Linux - Networking 2 12-14-2007 10:28 AM
OpenVPN - Can't ping private network chabam Linux - Networking 2 11-27-2007 07:35 AM
Cannot ping OpenVPN client after server restart skubik Linux - Networking 3 10-15-2007 01:42 PM
OpenVPN bridge problem acetone802000 Linux - Networking 2 05-18-2007 04:31 AM
openvpn server and client cannot ping both direction odie_chan Linux - Networking 0 07-08-2006 12:06 AM

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

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