Answer the question
In order to leave comments, you need to log in
How to set up an OpenVPN server to work from a specific IP address?
There is an OpenVPN server on CentOS, everything is set up and the clients are working, how to make this server, even if the client has a connection config to it, work with only one open IP address, well, roughly speaking, only from the office IP.
Answer the question
In order to leave comments, you need to log in
in general, everything is easily solved with the help of firewall'a: you add a port and an address to the zone.
example for firewalld:
firewall-cmd --new-zone=openvpn_access --permanent
firewall-cmd --reload
firewall-cmd --zone=openvpn_access --add-source=нужный адрес с которго необходимо юзать openVPN/32 --permanent
firewall-cmd --zone=openvpn_access --add-port=1194/udp(tcp) --permanent
firewall-cmd --reload
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question