arno-iptables-firewall / aif

GNU General Public License v2.0
149 stars 24 forks source link

Plugin loopback_nat not loading properly? #78

Open AnthonyMusgrove opened 4 years ago

AnthonyMusgrove commented 4 years ago

Hi guys, I've recently purchased a Netgear Nighthawk D7000v2 modem/router, and it's fantastic. I've logged into it via telnet and added the following:

/etc/arno-iptables-firewall/plugins/nat_loopback.conf, and configured it with ENABLED=1, set the proper IPv4 internal net.

I added the binary for the nat_loopback to the binary_dir set in firewall.conf:

PLUGIN_BIN_PATH="/usr/local/share/arno-iptables-firewall/plugins" << here PLUGIN_CONF_PATH="/etc/arno-iptables-firewall/plugins" (here is where the .conf is)

I restart the firewall, and it flushes everything. It says Unloaded 0 user plugins, even after it states that it has loaded it:

Checking for (user) plugins in /usr/local/share/arno-iptables-firewall/plugins... NAT Loopback plugin v1.02 NAT Loopback default IPv4: 169.254.25.54 NAT Loopback internal net(s): 192.168.1.0/24 NAT Loopback local forwards are enabled. Loaded 1 plugin(s)...

Every time I restart the firewall, it says Unloaded 0 user plugins. However, every time it starts, it states the above message saying the Plugin has been loaded.

status-plugins doesn't show the plugin status. It just shows:

/etc/arno-iptables-firewall # arno-iptables-firewall status-plugins Arno's Iptables Firewall Script v2.0.1f

Showing status of (user) plugins:

/etc/arno-iptables-firewall #

And consequently, the loopback-nat functionality isn't working. When I try to open the URL that links to my externally forwarded server, it is still trying to connect to the router (because it says connection refused, and this specific port isn't a port that would be used by my router).

Could you please give me some pointers as to where I'm going wrong? thank you so very much. Kindest regards, Anthony

abelbeck commented 4 years ago

@AnthonyMusgrove : I'm confused with your setup ... are you manually adding arno-iptables-firewall to your NN (Netgear Nighthawk) ? Does the NN come with arno-iptables-firewall ? Doesn't the NN alrady contain a firewall ?

If you could show your (sanitized, rewrite public IP's, etc.) output from arno-iptables-firewall restart that could also be helpful.