open vpn firewall

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
mehdi2010
OpenVpn Newbie
Posts: 1
Joined: Sun Dec 05, 2010 7:27 am

open vpn firewall

Post by mehdi2010 » Sun Dec 05, 2010 7:41 am

hello
is there a way that open vpn by access control list restrict a client to acess an ip
is there iptables or firewall on vpn server
thank

User avatar
gladiatr72
Forum Team
Posts: 194
Joined: Mon Dec 13, 2010 3:51 pm
Location: Lawrence, KS

Re: open vpn firewall

Post by gladiatr72 » Thu Dec 23, 2010 4:31 pm

A damned fine question, sir! Is there iptables or firewall on vpn server? If you're using Linux, the answer is YES. The port that OpenVPN runs on, by default, is UDP 1194. If you're really looking to make things more complicated, you could also leverage the client-connect script hook to check the client's connecting IP. If it doesn't exist in your list of allowed addresses, you could code the script so that it returns a non-zero error code which causes an immediate client disconnect. That seems a little bit more work than just creating iptables rules, though.

-Stephen
[..]I used to think it was awful that life was so unfair. [...]Wouldn't it be much worse if life were fair, and all the terrible things that happen to us come because we actually deserve them? -Marcus Cole

Post Reply