How to temporarily disable firewall rules for troubleshooting
From GUI:
- Backup the current configuration:
- Navigate to System :: Toolkit :: Save Settings
- Select a destination for the backup file; i.e Local Computer
- Click Save
- Remove the existing firewall rules:
- Navigate to Security :: Firewall
- Click the name of the chain that is being investigated; i.e INPUT for IPv6
- Click the checkbox on the header bar to select all rules
- Click Delete
- Verify there are no rules listed for the chain
- Repeat 2a-2e if additional chains needs to be disabled for testing
Proceed with troubleshooting and when done restore the saved configuration:
- Navigate to System :: Toolkit :: Apply Settings
- Select the source for the backup file; i.e Local Computer
- Click Apply
- Click Finish
From CLI:
Save a copy of the current configuration:
save_settings
set filename=firewall_troubleshooting.cfg
Remove the existing firewall rules:
Note: Change INPUT to OUTPUT or FORWARD based on which chain is being investigated
- For IPv4:
cd /settings/ipv4_firewall/chains/
cd INPUT
delete -
commit
- For IPv6:
cd /settings/ipv6_firewall/chains/
Proceed with troubleshooting and when done restore the saved configuration:
apply_settings
set filename=firewall_troubleshooting.cfg
From root shell:
Stop the iptables process:
/etc/init.d/iptables stop
Proceed with troubleshooting and when done restart the process:
/etc/init.d/iptables start
- For IPv6:
Stop the ip6tables process:
/etc/init.d/ip6tables stop
Proceed with troubleshooting and when done restart the process:
/etc/init.d/ip6tables start