Quote:
But did I allowed all connections or still only ssh and openvpn port only open?
|
Yes u allowed all ports on linux, if any service listens to it
if there is no service running or they run with default configuration, it is mostly safe. Do not panic
If you want to DROP everything coming to you linux except "openvpn" and "ssh",
add following rule to your script:
Code:
iptables -A INPUT -i tun+ -j ACCEPT
that rule means that "allow everything that comes to tun(0,1,2...) interfaces which openvpn uses.
Edit: do not trust scripts much. visit netfilter website and read tutorials manuels and other documents. use iptables scritps if u understand what it exactly does.