Ubuntu Networking :: Using Network Manager PPTP Client While Accessing SSH / Apache From Public Internet
Oct 27, 2010
I've searched the forums (250 thread limit) for a fix on this, but all the questions seem unanswered or unrelated. My situation is this: I'm running Ubuntu x64 10.10 'Maverick'. I have a cablemodem connection for my Internet access. I have home network running on DD-WRT with the dreadful Linksys WRT54G series router.
My DD-WRT router is 192.168.1.1, subnet 255.255.255.0.
My Linux box is 192.168.1.61, subnet 255.255.255.0.
I have a VyprVPN connection set up successfully on Linux. Mostly everything works great, speed's fine, latency is what I expect it to be. Except... I also run an SSH server to remotely admin the box at port 22, an Apache server running over SSL at port 7001, and a Transmission web client at port 7002 (only secured by basic HTTP realms auth). All of these things worked before I got the VPN working, I'm of course using NAT at the DD-WRT router.
The endresult I am looking for, is to have the security and protection of the VPN (even if it's only perceived) for everything I do on this machine -- EXCEPT on Apache, the Transmission web panel, and the SSH server, which I want to access from the outside world. I have no firewalls running or configured, not even iptables, not even the SPI firewall on DD-WRT. All connections to the aforementioned services from the outside world timeout coming in to the Linux box. They all work from inside my home network (188.8.131.52/24). In case it's needed, he's my routing:
Using my laptop, I'm trying to get onto the local library's wireless network, with zero results so far.Basically, I can see the network, but when NetworkManager tries to connect it just spins for a few minutes and then rejects the connection. (Or the connection is rejected by the router) My wireless connection works fine when connecting to my WPA home network.
I'm trying to connect to a Microsoft ISA PPTP server from my Linux box. The box I'm connecting from is itself a router. I have no problem connecting a Windows XP machine to the VPN via this machine. This is fine, but I would rather connect via the Linux machine, giving me far more advanced routing options (i.e. no to send every packet from the XP box completely unnecessarily via the PPTP tunnel). The Linux router is running Debian Lenny.
I've checked iptables. There were initially some issues. I've fixed those.
Invoking pppd from the console, I can see that authentication succeeds, but then some negotiation goes wrong and the server terminates the connection. Here's the output from pppd, with the more sensitive stuff removed:
Code: <hostname>:~# pppd call <peer> nodetach debug using channel 19 Using interface ppp0 Connect: ppp0 <--> /dev/pts/2 sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe3e45f75> <pcomp> <accomp>] code....
I followed (or at least tried to follow) tutorials on doing this. I installed network-manager-pptp and tried to configure network manager to connect to a VPN. In the settings when I select MPPE with 128-bit encryption, after I've selected it and applied it, I check the settings and it's invariably unchecked. I tried using KVpnc after getting frustrated with network manager, and I can't seem to get that working either. I've been trying to search for info on this, and I can't seem to find anything on why I can't select MPPE with 128-bit encryption. That seems like it might be why I'm unable to connect to the VPN?
I currently managed it to get a pptp-connect to my home network. now I have another little problem. NetworkManager always routes the whole network traffic over my home network if i am connected to the home network.If i set the "Use this connection only for resources on its network" I have do manually say:
Code: route add -net 192.168.1.0 netmask 255.255.255.0 dev ppp0 After that only the correct traffic runs over the vpn. Now my question is it possible to setup the route via the networkmanager gui?
I have updated the system this morning and the vpn stopped working!It gives me an error: invalid secrets.I use network manager to connect to a pptp vpn connection, I use fedora 12.Does anyone know the problem?
I successfully installed openvpn and networkmanager openvpn plugin. Then I successfully added a PPTP vpn connection by networkmanager vpn tab which name is "vpn1". But now I don't know how to connect to this PPTP vpn connection. I tried bellow command but no luck. openvpn --config vpn1.config
I am trying to connect my pptp client Linux to a pptp Linux server using modem but no success. I can only tweak ppp linux side Observing the following log I found it�s due to MPPE Support configuration mismatch in pppd, pppd (linux client) is refusing to accept MPPE encryption.
pppd: pppd 2.4.5 started by root, uid 0 chat: abort on (NO CARRIER) chat: abort on (NO DIALTONE) chat: abort on (ERROR) chat: abort on (NO ANSWER) chat: abort on (BUSY) [Code]....
im centos 5.3 At first, I used pptp-1.7.2-3.rhel5.i386.rpm from [URL]. But it didn't appear any process of install without a warning about the key problem, and I can't use rpm -e to uninstall it, I just uninstall it from xwindow. Then, I download the pptp-1.7.2-3.tar.gz from [URL] After make and make install, it appeared a problem when i do # pptpsetup --create tunnelname --server xxx.xxx.xxx.xxx --username somebody --password sercet。It told me "./pptpsetup: couldn't find MPPE support in kernel."
But im centos 5.3,and uanme -a: Linux localhost.localdomain 2.6.18-128.el5 #1 SMP Wed Jan 21 10:44:23 EST 2009 i686 i686 i386 GNU/Linux The kernal is support MPPE, and I have reinstalled the ppp-184.108.40.206-el5.rf.i386.
since installing opensuse 11.2 KDE, is that I can connect to the local resources when I'm not connected via the pptp vpn to the Internet but as soon as I establish an Internet connection, I cannot. Under Windows and other distros I've tried, this has never been an issue, usually I can connect to either local or Internet resources, interchangeably. In a nutshell, I don't know how to troubleshoot this.
I have ovpn configuration files for Windows from SwitchVPN. They do not provide configuration files for GNU/Linux. They said I can extract the certificate and key files from the ovpn files, but I'm confused about how to do that.First of all, I don't know which Authentication Type to choose: "Certificates (TLS)," "Password," "Password with Certificates (TLS)" or "Static Key."
Second, I don't know what to put where from the ovpn file. I see a <ca> � </ca> section and a <tls-auth> </tls-auth> section, but I don't see how those correspond to any of the Authentication Types. "Certificates (TLS)" and "Password with Certificates (TLS)" require two certificates and a key, "Password," requires one certificate and no key, and "Static Key" requires a key and key direction but no certificate. When I connect to SwitchVPN in Windows, it asks for a user name and password.Here's an example of the ovpn files (certificate and key contents removed):
route-delay 3 fast-io client dev tun
how to get what I need from the ovpn files, and which Authorization Type to choose in the Network Manager VPN configuration GUI, and what to put in the blanks?
I have got pptpd linux server and pptp linux client which connects successfully. Now I want setup idle time (inactive) in pptp linux client so that if the pptp tunnel is inactive say for example 5 minutes it will be automatically disconnected. how can do that, is there any built in feature on pptp client?
1st, i managed to make a VPN connection to my server and after a reboot i get this:I've tried everything that google gives me with "ubuntu vpn service failed to start pptp" search terms.2nd, I've got a DSL connection (PPPoE) to the internet. When i connect it, eth0 looses it's ipv4 ip (I've disabled ipv6). How can I keep it?
I am using Ubuntu 10.04 LTS 64 bit. I deleted network manager so that I could install wicd but did not install wicd first so now I have no internet. I have read several post and the answer for me is not there.
I am trying to setup Fedira 12 Linux Apache in my home network. I am able to access the hosted website from inside my home network without any problem. I am facing the problem to access it from outside. At the moment i have connected the Apache directly to DSL modem for testing purpose. I was reading "The ISP may have blocked the HTTP port 80. So check it by connecting the Apache directly to DSL modem." The temporary network connections for testing purpose are as follows..
DSL modem (SIEMENS Speed Stream 4200)-->Fedora 12/Linux Apache Server
I am even unable to PING the real ip (IP for DSL modem).(Firefox gave me error message "Connection Timed out) I have tried to ping it from the internet.I can PING the DSL from Apache without any problem.
1. Why i am even unable to PING the real IP of DSL modem at my home.?
2. Is it possible to run/setup Apache by using this type of DSL modem?
3. DSL modem has real IP. DSL MODEM assigns private IP (192.168.x.x) to Apache. So when a http request form the internet came to DSL modem on port 80, will it forward to Apache automatically.? or i have to made any changes.(I can not see anything in DSL modem to change/modify), OR do I have to use another DSL MODEM/Equipment (router)? This setup is just temporary. The actual design is as follows
DSL MODEM(Speed Stream 4200)-->Fedora 12 Linux ROUTER--->Internal network with DNS/Apache Server
My Ubuntu 9.10 (64 bit regular old desktop version) machine has two NICs, eth0 and eth1. eth0 does not connect to my router (and thus the Internet) automatically. I have to manually click on it in the NetworkManager applet after every reboot.
Internet connection sharing has also been impossible. I gave up trying to do that after about 2 weeks. I was simply trying to share my Internet connection with a Windows XP machine over eth1, but it never worked. I could ping one machine from the other, but couldn't get to the Internet from the Win XP machine.
Removing NetworkManager may be the ticket. Most of the tutorials for Internet connection sharing tell you to enter commands in the console. Maybe one of them will work once I remove the NetworkManager applet.
I'm trying to configure internet access using KDE network manager. Added new VPN pptp connection, set gateway and other options but manager tries to connect for about a minute and breaks then. Here is /var/log/daemon.log
Code: Jul 1 17:35:22 dvinokurov-desktop NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.pptp'... Jul 1 17:35:22 dvinokurov-desktop NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.pptp' started
As I understand the main problem is in "(IP Config Get) timeout exceeded".
Configuration: Kubuntu 10.04 x86, VPN server with MSCHAPV2 auth, no compression, no encrypting.
I've read a lot on the internet about various ways of doing this but i've been unsuccessful each time. Basically what i've done is accidently un-installed network-manager because I was having trouble staying connected on my WPA network. The easiest way of reinstalling it I know of is using the CD but I don't have a CD ROM drive and the pen drive I used to install it I no longer have.
I tried using a program called Keryx but you need python installed and from some reason this doesn't come with ubuntu 10.10. I've also downloaded the .deb packages but I still need to download 200kb which is a killer. I've also downloaded it from here too [URL] but the install file makes no sense to me as i'm not a massive linux user. One last thing reinstalling isn't really an option as i've already put a lot of time into setting up this computer.
Is it possible to access windows network printers from a VirtualBox WindowsXP client running under Ubuntu 10.10 host? The networking type is NAT. Would Bridged Networking solve the problem? If so, is there a tutorial on how to set up bridged networking for virutual box?
I have installed WvDial (apparently) but it has no icon or launcher to start it by default, how do i get it to run? I also need basic set up how to. I am running Ubuntu 9.10 (Karmic) and network manager doesn't seem to be able to use my modem to connect to the internet (set up wizard works, appears connected, but then I get page not found error). Hence I wish to use WvDial to try to connect instead.
I have a Ubuntu 10.04 laptop that gets its Internet connection via WIFI using WICD as network manager, and Windows XP desktop with no Internet connection. What I want to do is share my Internet connection from my laptop with my desktop via a Ethernet cable. But i have no idea what to do. How do i go about doing this?
I have installed the CentOS 5.3 on VMWare. Then I Have Installed Apache ,PHP , Mysql with the flowing Command : yum install httpd yum install php yum install mysql yum install mysql-server yum install mysql-devel yum install php-mysql
Then I tested my Web Server , Data Base server and PHP Whit Create A PHP Page that work to Mysql this Test is successfully. Next I ping my machine IP (192.168.6.131) and then Ping windows xp machine. Even I Ping My Linux machine in Windows XP. But when check the PHP Page Or Local host in Linux machine whit Browser (IE or FF in XP), Response (IE:) Cannot display the webpage or (FF:) The connection was reset.
How do I tell the shared connection that it has a static IP and that I dont want a DHCP on the network?Do I have to set up DHCP on the box with the shared connection, even if that box only runs DHCP for a single IP address being the eth0 that is shared?Or can I tell the shared connection that it has a static IP and still allow network manager to run the shared connection?Or should I specify static IP's for all clients and the shared network manager and install say firestarter on the gateway to run the NAT for the eth0 out to eth1.
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