Fedora VPN unable to see network resources other than hba

rdagijones
Posts: 274
Joined: Thu Jan 26, 2012 7:56 am

Fedora VPN unable to see network resources other than hba

Postby rdagijones » Mon May 03, 2021 5:50 pm

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?

User avatar
bigfoot65
Project Manager
Posts: 11863
Joined: Mon May 25, 2009 4:31 pm

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

Postby bigfoot65 » Tue May 04, 2021 7:39 am

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.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 2 guests