I have a web service on an external server, and an openvpn server on the same machine. I need to open port 80, but only for openvpn clients. In other words, if I do nmap-p 80 server_ip I expect to see filtred. However at the same time, if I connect to the vpn and do the same command, I expect to see open.
I'm a programmer, and I don't know much about network administration. If it is possible to make a couple of rules in
iptables, please tell me how to write. If it is difficult, then tell me at least in what direction to look. I can not find, on the Internet, a similar case with an explanation of how to do it.
This time, I'm trying to do this on CentOs 7 with
firewalld, can it be done using
firewalld, or do I need to remove it, and do it via iptables?