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

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

banz

Occasional Visitor
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

Latest threads

Sign Up For SNBForums Daily Digest

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