Page 1 of 1

Fedora VPN unable to see network resources other than hba

Posted: Mon May 03, 2021 5:50 pm
by rdagijones
I have no clue why but when connecting to my Amahi (Fedora based) server via OpenVPN I can only reach HDA but nothing else in the network. I did not have this problem before and really cannot grasp why it is happening now. If I run the following command (as root)

Code: Select all

iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
other connections are possible. If I restart the server, any changes revert and the problem begins all over again.

Two questions:
1. How do I diagnose what caused this?
2. Is there a way to make the command persistent on boot?

Re: Fedora VPN unable to see network resources other than hba

Posted: Tue May 04, 2021 7:39 am
by bigfoot65
I do not know what version of Amahi/Fedora you are using, but a potential work around is to create a cron job and place the following in it:

Code: Select all

@reboot iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
That should execute the command on reboot. Also, you may need to put the full path of the command iptables.

Hard to say why it's not working, but the solution above should fix you problem.