How to bypass CTF (Port Forward rule not working)

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4, 5  Next
Author Message
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Sat Oct 08, 2022 10:41    Post subject: Reply with quote
egc wrote:
let me know, I have no problems with port forwarding and CTF+FA, but I use WireGuard which restarts the firewall so that could be the trick.

Well, you do NOT need to wait 60 second nor 5 minutes. Just 'restart firewall' in a USB startup script after sleeping for a while.

And I had enabled both CTF AND FA!!!! I still disabled SFE and STP.

I waited for about 15 seconds totally, in order to restart Unbound so as to use /jffs/etc/unbound.conf. I am still waiting for a patch to stop doing this( https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=333027 ). Wink

BTW, speed-wise and compared to SFE, CTF seemed to increase transfer rate a little bit, BUT, I am merely using a 100M broadband.

Also, DNS over TLS test (aka Unbound) results are far more consistent with CTF than SFE.

Lastly, I remember some users talking about marking packets using iptables could make CTF + port-forwarding work. I think these users could also stop doing it and just try a firewall restart.


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw


Last edited by mwchang on Sun Oct 09, 2022 10:31; edited 1 time in total
Sponsor
jacdc
DD-WRT Novice


Joined: 19 May 2021
Posts: 40

PostPosted: Sat Oct 08, 2022 17:08    Post subject: Reply with quote
mwchang wrote:
egc wrote:
let me know, I have no problems with port forwarding and CTF+FA, but I use WireGuard which restarts the firewall so that could be the trick.

Well, you do NOT need to wait 60 second nor 5 minutes. Just 'restart firewall' in a USB startup script after sleeping for a while.

And I had enabled both CTF AND FA!!!! I still disabled SFE and STP.

I waited for about 15 seconds totally, in order to restart Unbound so as to use /jffs/etc/unbound.conf. I am still waiting for a patch to stop doing this( https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=333027 ). Wink

BTW, speed-wise and compared to SFE, CTF seemed to increase transfer rate a little bit, BUT, I am merely using a 100M broadband.

Also, DNS over TLS test (aka Unbound) results are far more consistent with CTF enabled and SFE disabled.

Lastly, I remember some users talking about marking packets using iptables could make CTF + port-forwarding work. I think these users could also stop doing it and just try a firewall restart.



Ok - I think as @egc mentioned earlier, I have a bigger issue with the firewall service. NONE of the rules here - /tmp/.ipt are being loaded/used after reboot. I have disabled CTF/FA and am just using SFE at this point and no matter what, my iptables -L is just 'empty'. The only rules that appear to show up are for Wireguard (nat POSTROUTING rule and a INPUT rule). When I issue a 'restart firewall' command post-boot, the only rules showing with iptables -L are the above WG rules.

Any ideas why 'restart firewall' is not pulling the rules in nvram or in /tmp/.ipt? Is there a way to see if the firewall service is actually running? Here is what I see in /var/log/messages when issuing a 'restart firewall':
Oct 8 09:58:01 jb-home kern.alert kernel: [ 719.869801] fast-classifier: shutting down
Oct 8 09:58:01 jb-home user.info : [sfe] : shortcut forwarding engine successfully stopped
Oct 8 09:58:01 jb-home user.info : [sfe] : shortcut forwarding engine successfully started
Oct 8 09:58:01 jb-home kern.alert kernel: [ 720.055962] fast-classifier (PBR safe v2.1.6b): starting up
Oct 8 09:58:01 jb-home kern.alert kernel: [ 720.061697] fast-classifier: registered
Oct 8 09:58:02 jb-home kern.alert kernel: [ 720.534841] fast-classifier: shutting down
Oct 8 09:58:02 jb-home user.info : [sfe] : shortcut forwarding engine successfully stopped
Oct 8 09:58:02 jb-home user.info root: WireGuard number of non failed tunnels in fail set: 0
Oct 8 09:58:02 jb-home user.info root: Flush delete PBR interface oet1, table : 21
Oct 8 09:58:02 jb-home user.info root: Enable WireGuard interface oet1 on port 51820
Oct 8 09:58:02 jb-home kern.info kernel: [ 721.117770] device oet1 entered promiscuous mode
Oct 8 09:58:02 jb-home user.info root: WireGuard 10.4.0.1/24 added to oet1
Oct 8 09:58:02 jb-home user.info root: WireGuard acquiring /tmp/oet.lock for 3510
Oct 8 09:58:02 jb-home user.info root: WireGuard /tmp/oet.lock acquired for 3510
Oct 8 09:58:02 jb-home user.info root: WireGuard waited 1 seconds to set routes for oet
Oct 8 09:58:02 jb-home user.info root: WireGuard route 10.4.0.6/32 added via oet1
Oct 8 09:58:02 jb-home user.info root: WireGuard route 10.4.0.7/32 added via oet1
Oct 8 09:58:03 jb-home user.info : [vpn modules] : vpn modules successfully unloaded
Oct 8 09:58:03 jb-home user.info : [vpn modules] : nf_conntrack_proto_gre successfully loaded
Oct 8 09:58:03 jb-home user.info : [vpn modules] : nf_nat_proto_gre successfully loaded
Oct 8 09:58:03 jb-home user.info : [vpn modules] : nf_conntrack_pptp successfully loaded
Oct 8 09:58:03 jb-home user.info : [vpn modules] : nf_nat_pptp successfully loaded
Oct 8 09:58:03 jb-home user.info root: WireGuard Inbound Firewall deactivated on oet1
Oct 8 09:58:03 jb-home kern.alert kernel: [ 722.352440] fast-classifier (PBR safe v2.1.6b): starting up
Oct 8 09:58:03 jb-home kern.alert kernel: [ 722.358252] fast-classifier: registered
Oct 8 09:58:03 jb-home user.info : [sfe] : shortcut forwarding engine successfully started
Oct 8 09:58:04 jb-home user.info root: WireGuard released /tmp/oet.lock for 3510
Oct 8 09:58:04 jb-home user.info : [sfe] : shortcut forwarding engine successfully started


Here are current running processes (is there a module for firewall that should be showing/running???):
PID USER COMMAND
1 root /sbin/init
2 root [kthreadd]
3 root [ksoftirqd/0]
5 root [kworker/0:0H]
6 root [kworker/u4:0]
7 root [rcu_sched]
8 root [rcu_bh]
9 root [migration/0]
10 root [migration/1]
11 root [ksoftirqd/1]
13 root [kworker/1:0H]
14 root [kworker/u4:1]
127 root [writeback]
129 root [crypto]
130 root [bioset]
132 root [kblockd]
140 root [kworker/u5:0]
160 root [kworker/1:1]
206 root [kswapd0]
207 root [vmstat]
261 root [fsnotify_mark]
274 root [kthrotld]
286 root [kworker/0:1]
293 root [bioset]
294 root [bioset]
295 root [bioset]
296 root [bioset]
297 root [bioset]
298 root [bioset]
299 root [bioset]
300 root [bioset]
301 root [bioset]
302 root [bioset]
303 root [bioset]
304 root [bioset]
305 root [bioset]
306 root [bioset]
307 root [bioset]
308 root [bioset]
342 root [bioset]
345 root [bioset]
348 root [bioset]
351 root [bioset]
354 root [bioset]
357 root [bioset]
360 root [bioset]
363 root [bioset]
371 root [bioset]
376 root [bioset]
381 root [bioset]
386 root [bioset]
391 root [bioset]
409 root [deferwq]
412 root [bioset]
416 root [kworker/0:1H]
417 root [kworker/1:1H]
703 root /sbin/hotplug2 --set-rules-file /etc/hotplug2.rules --persistent
707 root /sbin/mstpd
711 root irqbalance -t 10
764 root watchdog
803 root [jffs2_gcd_mtd5]
1069 root klogd
1097 root [ipv6_addrconf]
1100 root dnsmasq -u root -g root -C /tmp/dnsmasq.conf
1373 root ttraff
1543 root wland
1836 root [kworker/1:2]
1948 root udhcpc -i vlan2 -p /var/run/udhcpc.pid -s /tmp/udhcpc -O routes -O msstaticroutes -O staticroutes
2440 root resetbutton
2604 root [scsi_eh_0]
2605 root [scsi_tmf_0]
2606 root [usb-storage]
2816 root process_monitor
2817 root [bioset]
2931 root [ext4-rsv-conver]
2969 root cron
2997 root dnscrypt-proxy -config /opt/etc/dnscrypt-proxy.toml
3014 root dropbear -b /tmp/loginprompt -r /tmp/root/.ssh/ssh_host_rsa_key
3032 root httpd -S -m 443
3064 root [kworker/0:3]
3183 root [kworker/0:2]
3467 root [wg-crypt-oet1]
3888 root [kworker/0:0]
3889 root [kworker/1:0]
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Sat Oct 08, 2022 17:16    Post subject: Reply with quote
I have seen that when there is a an error in the firewall rules.

After the error the .ipt does not load any further

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat Oct 08, 2022 17:51    Post subject: Reply with quote
mwchang wrote:
I think jacdc was right about the sysinit issue. Why were processes restarted multiple times during start-up when they all should have been done once? I don't think the firewall was restarted that many times. Smile

Some services depend on others and while some such services support reloading config files without restart, not all do so they will umpteen times do it.

NTP depends on WAN, cron depends on NTP synced time, anything that depends on cron needs to restart, its not so simple in practice except to type stuff we may think.

The router needs to be up and read ASAP, anything else should happen in background transparently. Not so easy when you have umpteen devices to support.

I would say we need more skilled developers with router/DD-WRT and solid C knowledge. Sure let me look in my pocket... oops, none.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Sun Oct 09, 2022 4:08    Post subject: Reply with quote
[quote="jacdc"]
mwchang wrote:
Ok - I think as @egc mentioned earlier, I have a bigger issue with the firewall service. NONE of the rules here - /tmp/.ipt are being loaded/used after reboot. I have disabled CTF/FA and am just using SFE at this point and no matter what, my iptables -L is just 'empty'. The only rules that appear to show up are for Wireguard (nat POSTROUTING rule and a INPUT rule). When I issue a 'restart firewall' command post-boot, the only rules showing with iptables -L are the above WG rules.

Any ideas why 'restart firewall' is not pulling the rules in nvram or in /tmp/.ipt?

Are you using Firewall Script to load your custom rules? What if you delay your script for 60 seconds by calling SLEEP command?

I suspect the User Firewall Script was executed BEFORE the system firewall script finished execution or started or before sysinit finished, and hence all your custom rules were lost. A delay usually works.
Quote:
Is there a way to see if the firewall service is actually running? Here is what I see in /var/log/messages when issuing a 'restart firewall':

I issued 'restart firewall' and got nothing in /var/log/messages nor any messages in the console. However, if I tried:
Code:

# service firewall stop
# service firewall start
cat: can't open '/proc/sys/net/netfilter/nf_conntrack_flush': No such file or directory
cannot open /proc/sys/net/ipv6/neigh/default/gc_thresh1
cannot open /proc/sys/net/ipv6/neigh/default/gc_thresh2
cannot open /proc/sys/net/ipv6/neigh/default/gc_thresh3
cannot open /proc/sys/net/ipv4/conf/br0/loop
[vpn modules] : vpn modules successfully unloaded
[vpn modules] : nf_conntrack_proto_gre successfully loaded
[vpn modules] : nf_nat_proto_gre successfully loaded
[vpn modules] : nf_conntrack_pptp successfully loaded
[vpn modules] : nf_nat_pptp successfully loaded

I suspect that the firewall was very closely tied to DD-WRT's VPN service, because back then, VPN was an attractive feature and most home routers didn't have it.

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw


Last edited by mwchang on Sun Oct 09, 2022 4:27; edited 3 times in total
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Sun Oct 09, 2022 4:15    Post subject: Reply with quote
the-joker wrote:
Some services depend on others and while some such services support reloading config files without restart, not all do so they will umpteen times do it.

NTP depends on WAN, cron depends on NTP synced time, anything that depends on cron needs to restart, its not so simple in practice except to type stuff we may think.

As before I totally understand these. I suspect because DD-WRT was rushed to completion, some bad decisions was made about designing the sysinit process.
Quote:
The router needs to be up and read ASAP, anything else should happen in background transparently. Not so easy when you have umpteen devices to support.

I would say we need more skilled developers with router/DD-WRT and solid C knowledge. Sure let me look in my pocket... oops, none.

If DD-WRT's sysinit was not coded in C but a shell script, it would be a lot easier to handle! Smile

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
jacdc
DD-WRT Novice


Joined: 19 May 2021
Posts: 40

PostPosted: Sun Oct 09, 2022 18:19    Post subject: Issue found in port forward rule Reply with quote
egc wrote:
I have seen that when there is a an error in the firewall rules.

After the error the .ipt does not load any further


Hi @egc - thank you for pointing this out...I ended up copying the contents of /tmp/.ipt to the Firewall Startup script (saves to /tmp/.rc_firewall) to get the default rules for security etc. back working. This actually worked and in the process I found out why the original rules were not being picked up on reboot - a forwarding rule for port 21 (FTP) had a network mask of '0.0.0.0.0' instead of the correct format - '0.0.0.0/0'. Apparently, the DDWRT UI allows this as I could enter a dummy rule and no UI warning displayed (probably another bug to file).

In any case, after fixing this in the Firewall Startup admin. and confirming the same in the /tmp/.ipt, then issuing a 'restart firewall' command, all of the default rules displayed with 'iptables -vnL'.

I also confirmed that the previous port forwarding (INPUT,FORWARD,etc) were present after the firewall restart so this confirmed the UI-based port forwarding still works in this release.

As for the original update and getting port forwards to work, I still needed to add a NAT POSTROUTING rule to get remote playback working with my Plex server. Adding the following rule:

iptables -t nat -I POSTROUTING -p tcp -m tcp -s 0.0.0.0/0 -d 192.168.xxx.xxx --dport 32400 -j ACCEPT

Is what allowed playback to work despite Plex Media Server (Remote Access) showing as 'Connected'. This may be an issue with Plex, but was needed even though there is a MASQUERADE rule in this NAT chain (unchecking the Filter WAN NAT Redirection under Security-->Firewall) as:

MASQUERADE all -- * br0 192.168.xxx.0/24 192.168.xxx.0/24

I still can't cast to my Sonos system remotely (even though it comes right up in my apps. as a player and the app. connects to it) so I think this is more an issue with Plex (TLS negotiation) than a network issue.

All in all, got a very thorough "education" in iptables with this experience and am still happy with the multiple improvements to both the UI (faster loading) and stability in this build.

BTW - am still using CTF/FA to get the highest speed I can with this R7000 hardware and am still working through port forwarding for FTP (Passive with Explicit TLS encryption). Connections from remote clients to FTP get hung up AFTER initial login/handshake - directory listing always hangs (internal vs. external IP address being passed to the FTP client causes the connection to hangup).
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Mon Oct 10, 2022 7:00    Post subject: Re: Issue found in port forward rule Reply with quote
jacdc wrote:
... Connections from remote clients to FTP get hung up AFTER initial login/handshake - directory listing always hangs (internal vs. external IP address being passed to the FTP client causes the connection to hangup).

Did you forward both port 20 and 21 to the real FTP server? Both TCP and UDP protocols? Standard FTP needs 2 ports.

There is passive mode FTP that allows you to use other ports, and you still needed 2 ports. I seldom played with passive FTP mode.

BTW, some ISPs block FTP and HTTP servers at default ports.


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Mon Oct 10, 2022 7:03    Post subject: Re: Issue found in port forward rule Reply with quote
[quote="mwchang"]
jacdc wrote:
... Connections from remote clients to FTP get hung up AFTER initial login/handshake - directory listing always hangs (internal vs. external IP address being passed to the FTP client causes the connection to hangup).

Did you forward both port 21 and 20 to the real FTP server? Both TCP and UDP protocols? Standard FTP needs 2 ports. I barely remember that port 21 is for commands and port 20 for data.

There is passive mode FTP that allows you to use random ports above port number 1024, and you still needed 2 ports(p, p-1). I seldom used it and am not familiar with it.

I don't know whether the default FTP server of DD-WRT supports passive FTP. But you have the choice to use ProFTPD in Entware, which has a lot of features in addition to passive FTP support.

BTW, some ISPs block FTP and HTTP servers at default ports.

ftp ports - Google Search
https://www.google.com/search?q=ftp+ports

passive ftp ports - Google Search
https://www.google.com/search?q=passive+ftp+ports


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
jacdc
DD-WRT Novice


Joined: 19 May 2021
Posts: 40

PostPosted: Tue Oct 11, 2022 17:53    Post subject: Re: Issue found in port forward rule Reply with quote
[quote="mwchang"]
mwchang wrote:
jacdc wrote:
... Connections from remote clients to FTP get hung up AFTER initial login/handshake - directory listing always hangs (internal vs. external IP address being passed to the FTP client causes the connection to hangup).

Did you forward both port 21 and 20 to the real FTP server? Both TCP and UDP protocols? Standard FTP needs 2 ports. I barely remember that port 21 is for commands and port 20 for data.

There is passive mode FTP that allows you to use random ports above port number 1024, and you still needed 2 ports(p, p-1). I seldom used it and am not familiar with it.

I don't know whether the default FTP server of DD-WRT supports passive FTP. But you have the choice to use ProFTPD in Entware, which has a lot of features in addition to passive FTP support.

BTW, some ISPs block FTP and HTTP servers at default ports.

ftp ports - Google Search
https://www.google.com/search?q=ftp+ports

passive ftp ports - Google Search
https://www.google.com/search?q=passive+ftp+ports



Hi @mwchang - thank you for this information. I ended up upgrading my FileZilla FTP server software - took several years before they finally put an updated release out. It seems to work better and they deprecated implicit TLS encryption. I have considered proFTPd in the past but for simple occasional sharing, I didn't want to deal with all the SSHd PKI etc. stuff (just TLS to secure transport was enough). Everything is working now and I was able to remove a couple forwarding rules in the process (just needed port 21 and my passive port range to be forwarded in the Port Forward rules).
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5700

PostPosted: Tue Oct 11, 2022 18:10    Post subject: Reply with quote
https://filezilla-project.org/versions.php?type=client (fzc portable)
https://filezilla-project.org/download.php?show_all=1&type=client

https://filezilla-project.org/versions.php?type=server
https://filezilla-project.org/download.php?show_all=1&type=server
jacdc
DD-WRT Novice


Joined: 19 May 2021
Posts: 40

PostPosted: Tue Oct 11, 2022 21:15    Post subject: Reply with quote
blkt wrote:
https://filezilla-project.org/versions.php?type=client (fzc portable)
https://filezilla-project.org/download.php?show_all=1&type=client

https://filezilla-project.org/versions.php?type=server
https://filezilla-project.org/download.php?show_all=1&type=server



Thanks - I was specifically referring to the 4 year gap from 0.9.6 to 1.0 for FileZilla Server - that is how infrequent I use it and didn't see a need to update until most recently and even in the last year - wasn't much change until the current release where they seem to have "tightened" up the security/feature set - still simple/easy to use though Smile

J
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Wed Oct 12, 2022 5:26    Post subject: Re: Issue found in port forward rule Reply with quote
jacdc wrote:
Hi @mwchang - thank you for this information. I ended up upgrading my FileZilla FTP server software - took several years before they finally put an updated release out. It seems to work better and they deprecated implicit TLS encryption. ... Everything is working now and I was able to remove a couple forwarding rules in the process (just needed port 21 and my passive port range to be forwarded in the Port Forward rules).

I thank you for your iptables sniffing that led to solving the port-forwarding problem after enabling CTF and/or FA.

Should a button be added in the WEBUI for restarting the firewall? If there was such a button, the port-forwarding mystery with CTF (and SFE?) might have been solved years ago. Other firewall-related problems might have been solved as well. Well.... just a speculation! Wink


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
jacdc
DD-WRT Novice


Joined: 19 May 2021
Posts: 40

PostPosted: Thu Oct 13, 2022 5:53    Post subject: Re: Issue found in port forward rule Reply with quote
mwchang wrote:
jacdc wrote:
Hi @mwchang - thank you for this information. I ended up upgrading my FileZilla FTP server software - took several years before they finally put an updated release out. It seems to work better and they deprecated implicit TLS encryption. ... Everything is working now and I was able to remove a couple forwarding rules in the process (just needed port 21 and my passive port range to be forwarded in the Port Forward rules).

I thank you for your iptables sniffing that led to solving the port-forwarding problem after enabling CTF and/or FA.

Should a button be added in the WEBUI for restarting the firewall? If there was such a button, the port-forwarding mystery with CTF (and SFE?) might have been solved years ago. Other firewall-related problems might have been solved as well. Well.... just a speculation! Wink




Glad this helped both of us and maybe others that find this thread. I wonder how many others out there have broken firewalls due to that UI change introduced in the last year for netmask. Sure, you should know what you are doing but for most average users creating a firewall rule via the UI... they are not worrying as much about syntax much less how to check if it loaded properly. This firewall restart step probably frustrated quite a few people too trying to get things like Plex with its hairpin NAT (MASQUERADE) requirement to work and not realizing it just took a simple post-startup restart of the firewall service to get working! Seems like a lot of work just to get remote music play to work but that is the price we pay for 'free'.

J
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Thu Oct 13, 2022 14:40    Post subject: Re: Issue found in port forward rule Reply with quote
jacdc wrote:
This firewall restart step probably frustrated quite a few people too trying to get things like Plex with its hairpin NAT (MASQUERADE) requirement to work and not realizing it just took a simple post-startup restart of the firewall service to get working! Seems like a lot of work just to get remote music play to work but that is the price we pay for 'free'.

We all had our own shares of ignorance and mistakes. It has nothing to do with "free" in my opinion.

Back then ipchains and iptables (NetFilters) were not wrapped as a service. It's an idea pushed by Linux distributions... Smile

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Goto page Previous  1, 2, 3, 4, 5  Next Display posts from previous:    Page 4 of 5
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum