I installed OpenVPN 2.4.3 x86_64-redhat-linux-gnu.
But the firewall block incoming the TCP port 1194.
Which command to unblock these port ?
------------------------------
When I add my current IP to the allow lists, I can connect to OpenVPN but can't go outside.
I already did:
I google and found many commands. I don't sure what are the exact commands. Please help.
But the firewall block incoming the TCP port 1194.
Which command to unblock these port ?
------------------------------
When I add my current IP to the allow lists, I can connect to OpenVPN but can't go outside.
I already did:
Code:
nano -w /etc/sysctl.conf
net.ipv4.ip_forward = 1
sysctl -p
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
service iptables save
service iptables restart
Code:
iptables -A FORWARD -s 10.8.0.0/24 -m state --state NEW -j ACCEPT
iptables -A FORWARD -s 10.8.0.0/24 -j ACCEPT
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -j REJECT
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j SNAT --to-source Your.Server.IP.Address
iptables -t nat -A POSTROUTING -j SNAT --to-source Your.Server.IP.Address
Last edited by a moderator: