What's new

My openvpn server cannot ssh onto the clients (firewall issue)

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

banz

Regular Contributor
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

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
 

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top