My openvpn server cannot ssh onto the clients but the clients can ssh into the server.
Server 192.168.7.1
Clients 192.168.7.0/24
I know this is a firewall issue on the openvpn server itself because it starts working when I disable the firewall.
This is the route that I added for forwarding.
-A POSTROUTING -s 192.168.7.0/24 -j SNAT --to-source <external ip>
I tried adding the following rules but I still can't ssh or ping the clients from the openvpn server. It only works when I disable iptables completely.
iptables -A FORWARD -j ACCEPT
iptables -A OUTPUT -j ACCEPT
iptables -A CHAIN -j ACCEPT
Server 192.168.7.1
Clients 192.168.7.0/24
I know this is a firewall issue on the openvpn server itself because it starts working when I disable the firewall.
This is the route that I added for forwarding.
-A POSTROUTING -s 192.168.7.0/24 -j SNAT --to-source <external ip>
I tried adding the following rules but I still can't ssh or ping the clients from the openvpn server. It only works when I disable iptables completely.
iptables -A FORWARD -j ACCEPT
iptables -A OUTPUT -j ACCEPT
iptables -A CHAIN -j ACCEPT
Code:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere