Networking :: OpenVPN Connects But No Replies To Pings
Jan 7, 2011
I have an asus router running tomato firmware. Through the webGUI I have set up an openVPN server as per the tomato guides. I am using the network manager plug-in in ubuntu 10.04 to connect as a client to the tomato openVPN. All of my certificates seem to be set up and working correctly.
I am able to successfully connect to the openVPN server using the ubuntu client but after that I get nothing. On the client side I am unable to ping the router, any ip addresses inside my private network, the virtual network ip, and web browsing (client) no longer works.
Also, when connected I am unable to ping the client from the private network.
Before connecting
Code:
chris@ChrisLaptop:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1e:68:90:5e:e9
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
I have installed OpenVPN to use it as an internet gateway butcan't get it to work.OpenVPN installed without any problem. The client can also connect and ping the server but there is no internet traffic.I think it is because of a wrong gateway address which the client gets but I'm not sure. server IP address is 10.8.0.1 and the client can ping this IP but it's default gateway is always 10.8.0.5 which is not accessible from the client.This is my server.conf:
I use vpntunnel.se and followed their tutorial for OpenVPN and it connects and assigns an IP. However, once the sequence is initiated and I open my browser I cannot connect to a webpage and get a "cannot resolve" error. I e-mailed their support and they suggested I change the DNS of my network settings. I did that but the same problem. Once I close OpenVPN my internet works again. It works in windows, so I know it is not my router...I use a wireless connection with my router. I don't know if this has something to do with anything...
I've configured an openvpn server on a wrt54g using dd-wrt firmware. I can connect from the command line...at least it appears to connect, but I am unable to access any resources. Trying to use networkmanager's openvpn client fails every time. Everything I find googling relates to Ubuntu, so just for kicks I booted into my Ubuntu partition for the first time in months....and the wireless lan disappeared when I restarted network manager, which is why I don't use Ubuntu in the first place, so much for the "easier distros". I'm assuming there are people successfully connecting to openvpn servers from Slack. I could definitely use a pointer.
I have just installed a testing net install of squeeze on my laptop and I'm having a few problems with my wired connection.
When i try to ping google.co.uk there is a large delay between each result even through the actual ping takes ~30ms. It takes about 5 seconds or more between each ping.
If i use ping -n it works fine. Does anyone know why this is happening?
I have 4 NICs in my 10.04 server, 3 of which I have bonded. The bond itself is working fine -- I'm able to connect to and from the machine -- but whenever I try to ping out, I get duplicate replies. Google has, so far, yielded nothing of use.
I've included potentially relevant files:
/etc/network/interfaces
Code: # The loopback network interface auto lo iface lo inet loopback auto bond0
i have some problems with configuring openvpn tunnel connection to my openvpn server. I'm using static-key tcp connection. Network manager always said to me that connection could not be established. Also, when i try to run openvpn from terminal, i got some strange permissions problem:
Code:
openvpn --config config.ovpn Mon Apr 5 15:48:37 2010 OpenVPN 2.1_rc19 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on Oct 13 2009 Mon Apr 5 15:48:37 2010 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Mon Apr 5 15:48:37 2010 /usr/sbin/openvpn-vulnkey -q moj.key
I am having (seemingly) random trouble with my wired network ever since I installed Lucid. I have no problem getting an ip address from dhcp. However, randomly the computer will boot and although I have an ip address I do not receive any responses for pings on the network nor can I browse the web. If I sudo /etc/init.d/networking restart a few times (or reboot) it will start working. However, restarting the networking services (as mentioned above) again will cause me to no longer receive responses for pings or browse the web.
Furthermore, I have never been able to successfully ping if I manually set an ip address. I have un-installed network manager and I am using /etc/network/interfaces to configure the network. Using Lucid Lynx 64bit on a Dell Precision. I have pasted below the output of a few working commands. When I switch between static ip and dhcp I am commenting/uncommenting the lines shown in /etc/network/interfaces.
I've been trying to use MySQL in Ubuntu but I've been having some connection issues and in trying to troubleshoot that, I observed this strange behavior with pings in Ubuntu Desktops inside our network.
- All Ubuntu Servers we have (10.10 and 8.04) behave as expected - All Windows machines behave as expected - All 5 Ubuntu Desktops we have, (10.10 and 9.10) exhibit the following unexpected behavior:
If they have a local ip addresses and are connected within the internal network, either to a switch or directly to a router, pings take much longer to be sent. It's not a higher lag, it's the time between each ping that increases. I have to wait for around 5 seconds for each ping, but the time in the ping reply is less than 100ms, also they're all in order so I assume it's the system delaying the sending of each ping.
If I plug a USB 3G modem directly then it works as expected again (~1 sec between each ping sent). Is this an intended feature, that depends on the network environment, or is this something I should look into more closely?
Brand new network, just installed, all ubuntu 9.10 boxes connected to a Dell 2206 dumb gigabit switch, and from there to Dlink router to cable modem. Pretty simple. ISP confirms great link out and inbound,
However, http requests can sit for 20-30 seconds (sometimes longer), before content returns, same for pings.
Some thought it might be MTU-related. What is best MTU setting 1500/1492/ ?
I have a Slackware 13.0 server that is not replying to icmp pings. However, I have double checked that /proc/sys/net/ipv4/icmp_echo_ignore_all is set to 0. The weird thing is I can run nc -v slackware 22 from any computer on my lan and the banner comes up just fine. The nic is on the same netmask and broadcast as all the other computers on my lan. I can log into it as well, it just doesn't respond to pings. I can even ping other computers and get replies just fine when pinging from inside the Slackware server.
I have even added an iptables INPUT rule for -p icmp -j ACCEPT. Although I've never had to do this. I ran tcpdump -vv icmp and I can see ping requests coming into the computer, however slackware simply doesn't respond. What could be causing this? A corrupt arp cache? It's been happening for more than a few hours so I wouldn't think so. How can I view the arp cache table? How do I clear it?
I've got a machine running Ubuntu Server that is on several VLANs. Each VLAN has its own subnet and the server has an address on each subnet. The switches are set to allow tagged traffic to the server for each VLAN that it is on. Switch ports ending with workstations are given untagged ports on whatever VLAN is appropriate. Workstations are given addresses on a subnet for each VLAN via DHCP. All this works great and hosts on any subnet/VLAN can access the server as normal via its address on that subnet/VLAN.
Accessing the machine by its address on a non-local subnet is where I run into a problem. Inter-subnet traffic has to go through a router, which has been set up appropriately. Running tcpdump on the server and pinging it from a workstation on a subnet, using its address on a different subnet, shows the server receives the ping, but sends no response:
Code: sudo tcpdump -i vlan4 -n tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
Another issue I'm having, considerably more serious, is my ability to connect to wifi access points with proxies. The story goes, my school has free wifi, but you have to go through their proxies to access the internet (like at McDonald's or Starbucks, where you must 'log in' and accept their usage terms). I can connect, including DHCP, and when I type in any URI I get the redirect posted to Chromium's address bar, but I simply cannot connect to it. This has happened in Ubuntu and Arch, using at least a couple different network management methods (I usually use WICD but I think I started off with networkd). The strange thing (to me) is that my Android phone works just fine, so although I'm not completely familiar with Android on this level, I don't imagine it's the fault of Linux itself. but I'll only be able to experiment with this once a week, on Saturdays (when I have class --gotta do something entertaining).
I am using Fedora 8 on my laptop, newly installed, I can see the network card(Linksys WPc54G v2) and Network Manager sees the wireless router, however as soon as I tell it to connect my computer freezes and I have to restart. I searched for solutions but all I found was Ubuntu problems.
Actually it seems that the trigger is when the keyring comes up and asks for a password. As soon as I start typing the pass it locks.
I've got a Zotac MAG HD-ND01 with XBMC live installed. This is built on Karmic Koala and runs very nicely through the wired NIC.
I configure the box using a cable. I'm using WPA2-PSK and it is clearly authenticating OK.. It gets an IP address.. the AP shows a connection to the box. My XP laptop connects to the access point OK.. just can't connect to the box via the wireless, and it can't see the network using wireless.
I have followed a number of threads on connecting Atheros 9XXX wireless [URL] but no joy.
Also, can Ubuntu connect to the AP at any speed greater than 54MB? My windows PC connects at 144MB+ . Will ndiswrappers connect at those sorts of speeds?
lspci -nn 04:00.0 Network controller [0280]: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) [168c:002b] (rev 01) iwconfig lo no wireless extensions.
I can normally connect to most wifi connections, but for some reason I can't connect to my broth's-gf-parent's network. Windows 7 can connect to it just fine, but not Ubuntu. Once in a while I'll go to a cafe, and this will happen there too.hough, like I said I can normally connect to all other wifi networks with no hassle
Let me start by saying that I am new to ubuntu, and that I always use forums as a last resort.
I installed ubuntu 10, and immediately after the Wifi card deected my network name, and actually connected to it, but then I opened up firefox and....no internet.
Since then I have been trying to fix this problem, and after some research I found out that my card (PCI Cwp-905) is RT2760 based, and I downloaded the linux RT2760 drivers for it.
The driver folder contained a readme file with commands you should enter to install it, and other setup files. The problem: every command I typed in didn't work. I tried "make", and then "sudo make", but just got permission denied each time. I am now at a dead end. (Please note that I changed my directory to the folder location before doing this)
Does anyone know what I am doing wrong? If you want I can attach the driver files.
My wireless connection always worked. When I log in, I already have internet access.I went on holiday and connected to several other networks.Now the laptop will not connect anymore. Sometimes after 5-10 minutes.When I forse to connect ("Connect to hidden wireless network), the laptop connects after several seconds. But not automatically.My wireless modem uses WPA2, MAC filtering and has a hidden access point.I use Ubuntu 10.4 on a HP Probook laptop. In "Network connections", under "Wireless", the "Connect Automaticly" and "Available to all users" are selected. When connected, the signal strenght is very good.
i noticed today that the last three places ive tried to use wifi at (a friends house, my cousins house, and my moms office wifi) refuse to connect, even after triple checking all the passwords and trying various security protocols (WEP 40, WEP 128, etc.). strangely, last weekend i was able to connect to a hotel wifi signal with no trouble. even stranger, my ipod touch is able to connect to all these places. at my friends house, we even tried an ethernet cable but ubuntu didnt even know it was there. im a little concerned about this, as i might need to connect to wifi for something really important and ubuntu wont cooperate.
I want to configure a VPN over the Internet.I installed the 'openvpn' package, generated the key file, transfered it by a secure way to the client, and setted up the configuration file.
So, in that configuration file I input the IP addresses of the tunneled interfaces. Both IPs are static in the tunnel.
Then, I've heard somewhere that I can assign a dynamic configuration IP for the client. I do this registering a range.
Well, when I tried to change static IP to dynamic IP (changing '192.168.0.2' to '192.168.0.0/24') in the configuration file, the OpenVPN didn't work.
Obviously I don't know what I'm doing, and I really, don't believe that simply changing the IP will make it work, but I tried.
I hope I explained my problem as well.
My configuration file:
# OpenVPN Server Configuration File dev tun 0 ifconfig 192.168.0.1 192.168.0.2 cd /etc/openvpn secret key_file
In client I execute the 'openvpn' without the '--daemon' parameter.Then I want that my client uses a IP in a range (192.168.0.0/24, for example), instead of a static IP (192.168.0.2).I also thought to use a DHCP server, but I'm not sure that will work.
I got a little problem with network manager. I got two connections in it, with two different DNS-Servers, because the one of my provider is very slow I surf with opendns, but sometimes that slows down too, so I want to change if necessary. Both connections got the same fixed IP.That worked all fine, until I got my new router (it's a Netgear WGU 624). It's connected by cable and I configured it like the old one. But for some reason instead of connecting to the manually configured connections, my fedora 10 creates a new one "auto eth 0" with a dynamic IP. So every time I boot or switch on from standby my PC connects with this one and I have to manually set it to the right connection. There's no chance to edit or delete it cause those two buttons are grey and won't work. I also tried restarting network manager manually and I also tried starting it with su as root.
Got an Edimax 7717un USB dongle for my Acer aspire 6930 (built-in WiFi is broken). It finds access point OK, but fails to setup with DHCP. If I put in manual IP config, I can ping OK, but I cannot browse web (or even my router's setup page). I get same behaviour on a home brew desktop.
With manual IP config, ping to my router works fine (and very fast, as does ping to 2 or 3 internet web sites. I can traceroute to internet web sites OK as well. With web browsing, if I wait a few minutes some bits of the page may arrive. With connection set to DHCP, Wicd shows WiFi connecting OK, but DHCP setup times out.
I have my internet connection via a wireless USB adapter and that works fine. Recently I connected my pc (Ubuntu 9.10) through a wired switch to my modified xbox so I can watch my videos in my office. I can share my content with my xbox (except for the items on my external USB HD's - I am working on that and will post that question elsewhere) but when I have my PC's wired connection plugged into the switch I can not surf the web or check email. It gets stuck at resolving host and then times out. If I disconnect the pc from the switch it sometimes connects before it times out. Usually it is quicker if I reboot without the wired intranet connection.
I have a Compaq Presario CQ42-195TX laptop with Ubuntu 10.04 (64-bit) installed on it and fully updated. It has a Realtek RTL8191SE wireless chipset which I am having trouble with - its wired connection is working perfectly.After starting up, I am able to see and connect to wireless networks. Once connected, the wireless functions correctly for a very brief period (under 10 seconds) in which I am able to access the Internet and so forth. The connection then stops working - although it doesn't get disconnected. When I say it "stops working", I mean I can no longer access the Internet and trying to ping the router gives me a "Destination Host Unreachable" error. If I disconnect from the network I cannot reconnect, nor can I connect to any other network.- though I can still see the list of available networks.
I thought that maybe this was a 64-bit issue, but I tried the Ubuntu 10.04 32-bit live CD and experienced the same problem.Please note that while this thread is about the RTL8191SE chipset, the RTL819xSE chipsets all use the same driver.Below are the results of various commands while connected to the network but after the connection has stopped functioning correctly:lspci -nn | grep "Realtek"
I recently installed Xubuntu 10.04 on my desktop computer that had a USB wireless adapter DLink DWA-140. I didn't have to install any additional drivers to get it to work. I put in the network SSID and the password and was connected immediately. However, when I try starting firefox it doesn't load any sites. Can anyone help me in approaching this problem. I have a DLink DIR-655 router. If I should gather more information to get this problem solved then please let me know and I will do so. Edit: Now I am unable to connect to the network. When I click the network icon in the taskbar, my home network is not visible while it is visible under another ubuntu computer I'm running.
I bought a laptop today (Compaq Presario cq62) and loaded Ubuntu 10.04 on it. Everything has been running great, but the Wifi has been acting up. It connects to my router for a few seconds to a minute, and then stops all data transfer (although it still shows that I am connected to the internet). My other computers running Mac work fine. I took my laptop to another place with wifi, and it did the same thing.
The data transfer seems to stop when there is a lot going on. Whenever I try downloading new software, it gets to exactly 5% then stops. If I disconnect the wifi, and reconnect it works again for another minute. I may need to be walked through any terminal codes.
On that note, where would be a great place to read up on using Ubuntu (online book?)