I have OpenVPN server on Mikrotik. I am connecting to this server via Debian machine (a client). After successful connection server pushes route to a client.
Right after that, I would like to run iptables script. So after client establish successful connection, I would like to run iptables on a client.
(The reason is, that client is actually a server with several subnets, and I don't want new openvpn route be accessible to all subnets).
Running iptables after successfull client connection
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVPN User
- Posts: 44
- Joined: Wed Jun 19, 2013 9:43 am
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Running iptables after successfull client connection
To run a script when a client connects ..
- on the server use --client-connect
- on the client use --up