Ubuntu Servers :: Openvpn Routing / Cant Ping Vpn Client From LAN

May 2, 2010

I am playing with openvpn, and I got stuck.I am using ubuntu server for openvpn server, which has 2 physical NICs, one is directly on internet and other is LAN, where few pcs are connected on.

View 5 Replies


ADVERTISEMENT

Ubuntu Servers :: Openvpn Site-to-Site : Impossibile To Ping Client On Subnet?

Jun 25, 2010

I have to ubuntu machine (9.10 and 10.4) with a openvpn tunnel between them.This is the situation:

Code:
NetworkA 192.168.0.0/24
|
UbuntuA br0:192.168.0.3 (openvpn bridge between eth0 and tap0)[code].....

UbuntuA has one only interface etho and there are two openvpn instance: one bridge istance with br0 and another instance with tun0.
UbuntuA is not the gateway for networkA. UbuntuB is the gateway for NetworkB.I need to comunicate between pc on networkB e those on networkA.This is the "ping situation" (no pc tested has an active firewall):

ubuntuA vs ubuntuB: OK
ubuntuB vs ubuntuA: OK
pc on NetworkA vs ubuntuA and ubuntuB: OK[code].....

View 6 Replies View Related

Ubuntu Servers :: OpenVPN: Routing Versus Bridging

Apr 21, 2010

Just curious to see what everyone's opinion on using routing vs. bridging for openVPN. I'm installing openVPN on a linux box that I'm using as a router. What I was wondering was your opinions on which one of these two options to use.

View 2 Replies View Related

Networking :: OpenVPN - Can't Ping From Server To Client Side Hosts / Make It Possible?

Mar 20, 2009

Code...

What I can ping
Host A -> Host B
Host B -> Host A

Host A -> Router B
Host B -> Router A

Host A -> OpenVPN B
Host B -> OpenVPN A

VPN Server -> VPN Client
VPN Client -> VPN Server

What I can't ping
VPN Server to any client side host local address
VPN Client to any server side host local address

I have searched and searched for this but can not find any answers. Why can I not ping Host B from my OpenVPN server?

View 1 Replies View Related

Networking :: Unable To Ping Host From OpenVPN Client After Port 22 Denied

Mar 28, 2010

After I applied below iptables rule.. I am unable to ping the host in 172.16.1.0/24 from OpenVPN client

View 1 Replies View Related

Fedora Servers :: Openvpn Not Able To Ping My Office Network

Jun 16, 2009

I had configured openvpn in my fedora 7. every thing seems ok. created all server,client certificates. and at client laptop i am using win xp. i installed vpn at client laptop n vpn is connected and client got the ip address of the range which i had defined in server.conf.

Now the problem is this that client vpn is connected and got the ip even than client not able to ping local network of my office.guys ur support n guidance needed.

View 1 Replies View Related

Ubuntu Servers :: Webserver On OpenVPN Client (visible To Internet)

Apr 19, 2010

I'm trying to run Web server (nginx, does not really matter) "behind" VPN tunnel (i.e., on VPN client - the idea is that Web server is available at VPN endpoint IP on VPN server). Stock Ubuntu 9.10 Server with stock openvpn 2.1. No network changes done, only ufw is enabled and IPv6 is switched off. I need this box to be available at main IP address, no default route for VPN tunnel.

Tunnel itself works nicely, no problems at all. Hand-made static routes work via tunnel just fine. Problem is in-going traffic - I can see that it at least comes via tunnel (via OpenVPN debug), but is blocked (or dropped) by firewall or kernel. As far as I know, specific VPN server does not filter anything and is used for running Web servers on other IPs. I think I might need to set up some sort of IP forwarding for tap0 device to localhost - but don't really know where to start.

Tried disabling firewall, making Web server listen on all IPs (from localhost to VPN tunnel) - no luck. The box is in another country and KVM will be time and money, so I really don't feel like experimenting. openvpn.conf (IPs are obscured, non-relevant options removed, based on recommended config for that server):

Code:

# Setup
dev tap
remote 1.2.3.4
port 5091

[code]....

View 5 Replies View Related

Networking :: Routing Vs OpenVPN Vs VMware - Host Only

Apr 4, 2010

My special networking configuration.

The case: I'm running two dedicated Linux servers (openSUSE). Both servers are connected through public IP addresses to the internet. Each server hosts a VMware with another Linux inside.

SRV1 and SRV2 are the entry points for OpenVPN from external clients. SRV1 and SRV2 are although connected through an OpenVPN connection for save data sharing.

My problems:
SRV3 can't connect to SRV2 and SRV4.
SRV4 can't connect to SRV1 and SRV3.
External OpenVPN clients connected to SRV1 can't reach SRV2 and SRV4.
External OpenVPN clients connected to SRV2 can't reach SRV1 and SRV3.

Here are my configurations:

Code:

Code:

Code:

Code:

View 1 Replies View Related

General :: Windows - Routing Everything Except A Certain IP Range Through An OpenVPN Tunnel?

Aug 31, 2011

I've been working with my OpenVPN server for a while, and I have a rather interesting problem. I need to redirect all client traffic through the tunnel except for a couple IP's that need to be resolvable locally. The way I'm doing this is pushing these routes from the server:

Server 'PUSH' directives

push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"

I'm seeing that translating into these Windows routes:

Windows routes occurring

Wed Aug 31 15:14:35 2011 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 8.8.8.8,dhcp-option DNS 8.8.4.4,route 10.8.0.1,topology net30,ping 5,ping-restart 30,ifconfig 10.8.0.6 10.8.0.5'
Wed Aug 31 15:14:35 2011 ROUTE default_gateway=192.168.1.254

Wed Aug 31 15:14:40 2011 C:WINDOWSsystem32
oute.exe ADD 199.[*.*.*] MASK 255.255.255.255 192.168.1.254
Wed Aug 31 15:14:40 2011 C:WINDOWSsystem32
oute.exe ADD 0.0.0.0 MASK 128.0.0.0 10.8.0.5
Wed Aug 31 15:14:40 2011 C:WINDOWSsystem32
oute.exe ADD 128.0.0.0 MASK 128.0.0.0 10.8.0.5
Wed Aug 31 15:14:40 2011 C:WINDOWSsystem32
oute.exe ADD 10.8.0.1 MASK 255.255.255.255 10.8.0.5

I've hidden my server's IP beginning with 199 for security purposes.What I've gathered.I'm assuming that 0.0.0.0 is a kind of code for "everything," so I'm not sure how I could get this to work, but the general idea is that I need a specific IP range (172.16.*) to be resolvable on the LOCAL NETWORK (of the client) meaning it does not go through the VPN tunnel and the client can connect to 172.16.* locally.Is this possible? Routes can be executed through the command line, server "push" or client config options. Any way to get this to work while still routing other traffic through would do, really.

Additional Info: I have the server running on Debian 64-bit and the client running on Windows 7 (although Vista needs to work as well).Client/server configs can be provided if needed.

View 2 Replies View Related

Networking :: OpenVPN And Routing With Redirect-gateway Iproute2 Solution

Apr 16, 2011

To be able to use my 3g connection from my laptop I am using Azilink.Azilink work by setting up a little Openvpn server on your smartphone then you connect to your smartphone from your laptop with OpenVPN.From there what i wanted was to use a second VPN connection to an external Linux host and redirecting all my traffic to that tunnel... (redirect-gateway + iptables)It is working but partially..Here is the way I connect through my phone (all steps are I think important for the routing issue...)

1) I plug the phone then a usb0 interface is created with the 192.168.239.5 ip adress (my phone is 192.168.239.4)Then adb connect 192.168.239.4

2) I have to enable a port forward on my phone adb forward tcp:41927 tcp:41927

3) I run the openvpn script (to connect to my phone on wich i have launched Azilink)

So Openvpn connect to 127.0.0.1:41927 (to my phone) From there I have a Initialization Sequence Completed
At this time I am connected through 3G via my smartphone to the Internet..And as you imagine i don't want to enter all the IP adresses of Internet minus RFC1918 manually via route command.I think the problem comes from the fact that when i do the route add default gw 10.8.0.5 it is overwritting all the routes required to establish the first and the second connection am i right? Could someone help me solve that issue ?

View 2 Replies View Related

Fedora Networking :: Routing Configuration - Cannot Ping Between PC1 And PC2

Feb 3, 2011

I want to implement routing using fedora 14. The following is how I arrange my computers -
[PC1]<=======>[ROUTER]<=======>[PC2]

And the following are the configuration -
PC1 : (Tiny Core Linux)
eth0 192.168.2.2/24 (netmask 255.255.255.0)

ROUTER (FC14)
eth0 192.168.2.1/24 (netmask 255.255.255.0)
eth1 192.168.4.1/24 (netmask 255.255.255.0)

PC2 (Tiny Core Linux)
eth0 192.168.4.2/24 (netmask 255.255.255.0)

On the ROUTER I have set the ip_forward=1 and eth0.proxy_arp=1 and eth1.proxy_arp=1
then I run the following command :
route add -net 192.168.2.0/24 gw 192.168.2.1 dev eth0
route add -net 192.168.4.0/24 gw 192.168.4.1 dev eth1

On PC1 I executed the following :
route add -net 192.168.4.0/24 gw 192.168.2.1 dev eth0
and for PC2 I run the following
route add -net 192.168.2.0/24 gw 192.168.4.1 dev eth0

After doing those things, I can't ping between PC1 and PC2... but both can ping the router...

View 14 Replies View Related

Networking :: Routing Command - WinPC1 Can Ping WinPC2

Jan 7, 2011

I have 2 windows PC and a linux as router in the linux there are 2 NIC eth0 and eth1. I created DHCP on eth0 and manually configured on eth1. My eth0 gateway was 192.168.26.253 and my eth1 was 192.168.22.253. I needed to ping the 192.168.26.x WinPC1 to WinPC2. What command I will use on linux so that the WinPC1 can ping to WinPC2.

View 6 Replies View Related

Fedora Networking :: Connect The Network Where The Openvpn Client Is,throught The Computer With The Client To The Other Network?

May 20, 2009

I have the following problem:I have to networks in remote places.I have an opnvpn client in one network that connects to the the router (openvpn server).My question is,can i connect the network where the openvpn client is,throught the computer with the client to the other network.If yes,how? (please make it an idiot proof anwser because i have limited knowledge about iptables). I was thinking like forwarding (the router in the network with the openvpn client is also firewalling with iptables) the request of the ip class of the openvpn network to the computer with the client,which masquarades the interface

View 2 Replies View Related

Ubuntu Servers :: Ip Ping Is Continuous, Dns Ping Is Discontinuous?

Aug 5, 2010

When i ping www.google.es, i get something like:Quote:

ping www.google.es
(wait 20 seconds)
64 bytes from 66.249.92.104: icmp_seq=2 ttl:53 time=80 ms

[code].....

View 2 Replies View Related

Networking :: Enabling Full Routing Site To Site With Openvpn Not Using Masquerading?

Jul 27, 2010

I've been on a quest to enable full routing through my openvpn tunnel between my office and the colo. Masquerading will work, however it will throw off anything key based and makes a lot of things just more difficult and vague in general. Is there an easy way to do this via iptables? I tried using quagga hoping it would magically solve my problems, however it does not seem to do my routing for me . I just did a basic static route within zebra...

View 3 Replies View Related

Ubuntu Networking :: OpenVPN Client Not Setting Up?

Oct 1, 2010

I am trying to connect to an existing VPN server that I have been using for years now. I am moving my develpment environment over to a Ubuntu box and I must have openvpn working in order to access SVN. It has been a few years since I have been setting up linux boxes. And networking is a soft spot for me. But

The server has been running without problem for a LONG time. A windows computer I have been using connects to it fine and I can access the network on this machine. I am setting up a new computer, but when trying to connect openvpn starts the initialization sequence completes but I cannot ping the network I am trying to connect to.

I use a second VPN connection to connect to an alternative network and it works fine. The difference between these two is that the working vpn connection is a routed IP tunnel and the one that is not working is a bridged connection.

The VPN that is working on this box brings up tun0 while the bridged connection connects but does not bring up a network tun device. The server logs look normal, it just looks like the client is not setting itself up to use the network once connected. (The key/cert pair work find when on a windows box) Just not on this new ubuntu build.

My current client config

Quote:

cert eric@home.crt
key eric@home.key
client
dev tap

[Code]....

The server is using tap, as well as the working windows client uses "dev tap"

It has been a long time since I have been maintaining linux boxes but its coming back slowly.

Do I have to bring a device up manually ?

View 6 Replies View Related

Ubuntu Security :: Unable To Ssh To Client When It Is Running Openvpn?

Apr 21, 2010

I have a virtual private server running ubuntu server edition that I have set up as an openvpn client. The problem I have is that the moment I turn on openvpn, I am no longer able to ssh into the machine. Is there a way to enable me to connect to it even when it is tunneling?

View 4 Replies View Related

Ubuntu Networking :: OpenVPN Server And Client At Same Time?

Oct 26, 2010

I have an Ubuntu server that is currently running Ubuntu 8.10. I was thinking of making it a VPN server for my iPhone and also for my laptop whenever I'm outside and need to access internet over insecure wireless networks. Now that part should be easy I found several guides on how to configure OpenVPN server, as well as enabling clients on iPhone, and OSX.

However, the things is that my server is currently a OpenVPN client also, I have a paid tunnel set up to bypass my ISP blocking incoming traffic on various ports. Is it possible to keep this setting but still enabling a VPN server? Essentially causing traffic from my external device to go in through my tunnel to the VPN server, and then out through the external VPN provider.

View 2 Replies View Related

Fedora Networking :: OpenVPN Client Disconnects Me From LAN / Fix It?

Sep 15, 2009

This is the first one of probably many posts as I am new to Fedora having lots of questions. This one is about the openvpn client which is used by me to connect to my company network. Thanks to the Fedora FAQ it was easy for me to set up the client and establish a connection. There is just one problem every time I open a connection I am disconnected from my local Internet. I was using openvpn on my Windows XP PC before and there was no problem keeping two Network connections, the (W)LAN and the vpn tunnel. Does anyone know how to solve this? I am utilizing the latest Fedora 11 release and configured openvpn client via the Network Manager GUI.

View 2 Replies View Related

Networking :: Openvpn Client Not Showing Up In Arp Table?

Mar 3, 2010

I have a ubuntu 9.10 box that is acting as my firewall. ETH0 is connected to a cable router and my eth1 nats out it. I have br0 bridged to eth1 (private). I am able to ping from my openvpn client into my network but not from a boxon my local network to the openvpn client I watched the firewall and nothing is being blocked on any device. I checked the arp table on my firewall and it does not know about my vpn clients. Any idea's why my vpn clients are not adding themselves to the arp table?

View 2 Replies View Related

Networking :: OpenVPN - Establish VPN Between A Client And Server On The Same LAN

Feb 4, 2010

Running Linux Fedora 10 on an Intel Core 2 Duo PC. Runs great. We are trying establish VPN between a client and server on the same LAN. The network is a standard fast ethernet, run great. We are trying to install OpenVPN server, but having a little difficulty. Key and certificate builds seem to execute without a problem. But when we try to start the service we get [FAILED]. I've attached a copy of our procedure.

View 1 Replies View Related

Server :: OpenVPN Client GUI For Windows 7 64Bit?

Feb 9, 2011

I have set up my Openvpn Server in Centos and it is working fine. Windows XP clients are able to connect the OpenVPN Server and access the network. This is a customized OpenVPN Gui Client. Now I need the customized OpenVPN Client for MS Windows 7Bit. I am using openvpn-2.1.4-install OpenVPN Client in MS Windows 7 64Bit. This is a executable and working fine in the said architecture. Now I want to compile this version. I am following the given steps at : [URL].. As per the direction i have copied the source from 2.1.4 and tried to compile, but compiled copy is giving the error " An error occurred Installing the TAP-Win32 Device Driver". I have tried this compilation by making every change and hack but all in vain.

I think that there are some certain steps which are missing and not documented any where. And sure that someone in forum will know the facts.

View 1 Replies View Related

Software :: OpenVpn Multiple Clients Gets The Same Client Ip

Mar 9, 2010

I'm using openvpn-2.0.9 with gui-1.0.3 which is set up on windows xp machines(for server and clients) when i set up the server and one client it connects well and i can work without a problem. but when the second client connects it gets the same ip address of the client1, so that both clients can't work at once.

my server and client config files are as follows.

server-configuration file

client1-configuration file

client2-configuration file

I've tried by changing many settings such as server-bridge and all but couldn't find a solution for the problem.

By the way when connected server gets 10.8.0.1/30 and every clients get same ip as 10.8.0.6/30

View 2 Replies View Related

Ubuntu Networking :: 9.10 - OpenVPN Client Fails (Error Status 7)

Jan 9, 2010

I have openvpn server configured with bridged interface on my openwrt router. The client is running ubuntu 9.10 with config:

Client
dev tap
proto udp
remote x.x.x.x 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca /home/blwegrzyn/openvpn/ca.crt
cert /home/blwegrzyn/openvpn/client1.crt
key /home/blwegrzyn/openvpn/client1.key
comp-lzo
verb 5
(x.x.x.x was hidden)

When the client connects the log says:
WRRRWRSat Jan 9 20:16:03 2010 us=332404 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway,dhcp-option DNS 192.168.1.241,route-gateway 192.168.1.254,ping 10,ping-restart 120' .....
Sat Jan 9 20:16:03 2010 us=343906 ERROR: Linux route add command failed: external program exited with error status: 7

The server is trying to push default gateway 192.168.1.254 to the client and the client is on 192.168.2.0 network as you can see the route addition fails with SIOCADDRT: No such process. This is because the tap interface does not have any ip and the route addition is not possible. The tap interface is not getting the dhcp address through the tunnel, not sure why (this works on XP). To fix the problem I must manually add the ip to the tap interface, and the default gateway, but then i must add dhcp server to resolv.conf to make it work and once I disconnect the computer does not know the old valid dhcp anymore and cannot communicate. Why openvpn cannot get the ip automatically? Why it cannot grab the dhcp from the tunnel? Is it related to the wireless card being managed by the network manager? This works perfect on windows machine (xp sp3).

View 3 Replies View Related

Ubuntu Networking :: OpenVPN Client No Buffer Space Available (code=105)?

Jan 26, 2010

I'm using OpenVPN 2.1 on Ubuntu 8.10 to connect to LAN behind an IPCOP server. Everything works fine except when I move across the tunnel files which are over 180kb, then I get UDPv4 []: No buffer space available (code=105 surfing the Internet I've found post that suggest to increase these settings on the kernel

> sysctl -w net.core.rmem-max=8388608
> sysctl -w net.core.wmem-max=8388608
> sysctl -w net.core.rmem-default=65536
> sysctl -w net.core.wmem-default=65536

those have actually made a small difference, but not enough for uploading even an image over http. I guess that I can keep increasing those values till I'm not satisfied, but as I'm not sure on what I am dealing with, can anyone tell me if there's a rule of thumb? My machine is a laptop with a dual core processor and 2GB ram.

View 1 Replies View Related

Networking :: Get Bandwidth Speed Info Between OpenVPN AS And Its Client?

Mar 11, 2010

is there any tools that I can use to get bandwidth speed info between OpenVPN AS and its client?

View 3 Replies View Related

Server :: OpenVPN On Fedora 12 - Error From Client Window

May 10, 2011

I already search in google doc about installation openvpn. Not all I got complete tutorial. When client connect to server, they got a few error.

Code:
Mon May 09 18:01:57 2011 us=774000 Re-using SSL/TLS context
Mon May 09 18:01:57 2011 us=774000 LZO compression initialized
Mon May 09 18:01:57 2011 us=774000 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Mon May 09 18:01:57 2011 us=774000 Socket Buffers: R=[8192->8192] S=[8192->8192]
Mon May 09 18:01:57 2011 us=790000 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Mon May 09 18:01:57 2011 us=790000 Local Options String: 'V4,dev-type tun,link-mtu 1542,tun-mtu 1500,proto UDPv4,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client' .....

View 1 Replies View Related

Software :: Gadmin-openvpn-client Won't Activate Connection / Fix It?

Jan 19, 2011

I can get a tunnel connected via terminal with: openvpn --config client.ovpn

However, when I tried to use the "friedly" gui (gadmin-openvpn-client), it keeps telling me to "import server certificates into client first."

I don't know what that means. Nor, do I see a tun device.

View 2 Replies View Related

Software :: Configuring Openvpn-2.1.4 On Redhat As Client Server Using Key?

Mar 20, 2011

I want to configuring openvpn-2.1.4 on linux redhat as client server using key, but there is some drawback

[Code]...

View 1 Replies View Related

Fedora Networking :: OpenVPN Client - How To Access Internal Ressources

Sep 26, 2009

I'm using Fedora Core 11 and the client OpenVPN on the network-manager into a segmented infrastructure. It works well.

My laptop is on a dmz wireless Zone 192.168.3.0/24 and access Internet through a firewall via a front-end zone 192.168.65.0/24 with wlan0 interface.

But my laptop can access on a back-end zone 192.168.2.0.24 to a server.

When I start the OpenVPN tunnel, I cannot access on my back-end zone because the kernel routing table is modified (all the traffic is routed through the tun vpn interface)

If I define a static route like route add -host 192.168.2.x gw 192.168.3.2 where x is my file serveur, I cannot connect to this server because the routing is make through the tun interface and not by the wlan0 who can access on is gateway

I want to know where changing the kernel routing table file to access on the Internet and on my back-end zone in a same time.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved