Linux Deny internet access to vpn

ASiC

Inactive User
Joined
Apr 8, 2013
Messages
12
Reaction score
0
Hello,
I've created a PPTP VPN using ubuntu server 12.04. Can I deny internet access to a specific client or ip on my vpn? I assume that this can be done using iptables but I don't know how to do it :|
Thank you.
 
Hello,
I've created a PPTP VPN using ubuntu server 12.04. Can I deny internet access to a specific client or ip on my vpn? I assume that this can be done using iptables but I don't know how to do it :|
Thank you.

Need a bit more info about your config M8. For example, is the server running without a GUI? How dis you set up the tunnel? You may find the server is the tunnel end-point and the rest of your network is invisible any way? Depending on your config you would normally have to manually add routes to allow access to clients behind the server.
 
Its a console only server. I used a very simple guide to set up the pptpd. https://vpnreviewer.com/how-to-install-vpn-server-pptp-debian-ubuntu-linux-vps

The client is able to browse the rest of my lan, no problem.

It will probably be easier to add a second network card to create a separate subnet for the stuff you don't want visible then route out via the server. Attempting this on iptables would be messy even if it's possible (which I doubt) The tunnel endpoint then sees the original lan but not the new one :)
 
It will probably be easier to add a second network card to create a separate subnet for the stuff you don't want visible then route out via the server. Attempting this on iptables would be messy even if it's possible (which I doubt) The tunnel endpoint then sees the original lan but not the new one :)

OK, I'll try it.
Thank you for your help mate ;)
 
Back
Top