-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Per user routing rules #425
base: master
Are you sure you want to change the base?
Conversation
This script will add iptables routing rules per client connection. By default the user will not be able to route to anything.
Hello im trying to improve this user routing and I get this error when a client is connecting: `Failed to list table names in /proc/net/ip_tables_names: Permission denied Traceback (most recent call last): File "/usr/local/bin/client-connect", line 63, in
File "/usr/local/bin/client-connect", line 59, in main
File "/usr/lib/python3.7/site-packages/iptables/logic.py", line 41, in execute
File "/usr/lib/python3.7/site-packages/iptables/logic.py", line 57, in get_current_tables
File "/usr/lib/python3.7/site-packages/iptables/logic.py", line 21, in run_command
iptables.logic.CommandError: command=/sbin/iptables-save failed with status=1` Thanks! |
Hey @netcraker01, This is due to the openvpn server running as user
and
|
Great now is up! Thank you !!, Im trying to do something I have 3 clients 2 of them have same ip subnet (192.168.250.0) and the other one needs to conect to client 1 subnet or client 2 subnet by demand. |
This branch allows per-user routing such that access to hosts behind the VPN can be controlled on a per-user basis.