PPTP-vpn on Debian, can connect but no Internet Access.
Hi LQ!
I have started a newly started a VPN-service with some friends and are offering both OpenVPN and PPTP-vpn. The OpenVPN works perfectly, but we have some problem with the PPTP. It is possible to connect to the VPN, but once connected you can't get any type of access to the outside world ( the interner ). I've googled (Ok, not I, but the tech-guy has) and havn't found any solution so therefor we try here. We are running Debian 5.0 on a XEN VPS. On the machines we've tested OpenVPN works like a charm. Any clues? Best regards, Emil |
make sure your server is configured to forward packets. Also, after you connect put this code in:
Code:
# route add default gw 192.168.1.1 |
Sadly, this didn't solve the problem.
While connected I noticed I could SSH into the server, with it's external IP-adress through PuTTy, but nothing else. If that information helps in some way. Best regards, h0n0r. |
Solved.
|
Hi, i have the same issue can you tell me how you solved it?
thank you. |
|
I have a shellscript to do this, ill upload it after School later tonight :)
|
This would be greatly appreciated :)
|
if you want a secure, reliable way to use the internet from your VPN, use an SNAT/DNAT
There are scripts out there to automatically accomplish this when the system boots, but if your system is reliable and secure enough, you will want to monitor this activity manually. Plus+ Some scripts only work in certain environments, depending on the version of linux/iptables/etc Your best bet is to recreate the SNAT/DNAT methods. If you have very many VPN users, you may have to resort to a different method, which requires even closer observation of iptables rules. Gateway IPTABLES rules: Code:
Table: filter Code:
//////////////PORT FORWARDING WORKING SOLUTION BEGIN |
Of course the server I have the script stored on is down... I'll do it asap.
|
Still need it?
|
deadly. actually i tried smth new like kill the firewall adminitrator (reason why i need VPN) lol but didnt really work out :/.
So yes i'm still in need :) |
hmmm i came across this thread with the identical problem. so far i was not able to solve it, what was the solution to this issue?
|
SNAT works well to tunnel traffic through to the internet
|
I've described my experience of setting up a PPTP VPN client on Debian: www.acampbell.org.uk/linux/vpn.html
|
All times are GMT -5. The time now is 12:54 PM. |