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
open vpn firewall
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
- gladiatr72
- Forum Team
- Posts: 194
- Joined: Mon Dec 13, 2010 3:51 pm
- Location: Lawrence, KS
Re: open vpn firewall
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
-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