Difference between revisions of "Disable & Verify Firewall"
(Created page with " === Fedora 20/21 === '''Disable/stop Firewall''' <pre>systemctl disable firewalld.service</pre> <pre>systemctl stop firewalld.service</pre> Can be undone with "start" and "e...") |
(→Fedora 20/21/22/23) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | === Fedora 20/21 === | + | === Fedora 20/21/22/23 === |
'''Disable/stop Firewall''' | '''Disable/stop Firewall''' | ||
Line 7: | Line 7: | ||
Can be undone with "start" and "enable". | Can be undone with "start" and "enable". | ||
− | '''Check Firewall in Fedora 20/21''' | + | '''Check Firewall in Fedora 20/21/22/23''' |
<pre>systemctl status firewalld.service</pre> | <pre>systemctl status firewalld.service</pre> | ||
Line 48: | Line 48: | ||
iptables -P FORWARD ACCEPT | iptables -P FORWARD ACCEPT | ||
</pre> | </pre> | ||
+ | |||
+ | Other debian settings: | ||
+ | |||
+ | <pre>/etc/hosts.deny</pre> | ||
+ | |||
+ | This setting in the above file will deny traffic from any source except locally: | ||
+ | |||
+ | <pre>ALL:ALL EXCEPT 127.0.0.1:DENY</pre> | ||
+ | |||
+ | Comment out this line like so: | ||
+ | |||
+ | <pre>#ALL:ALL EXCEPT 127.0.0.1:DENY</pre> | ||
=== Windows 7 === | === Windows 7 === | ||
Start -> Control Panel -> View by "Small icons" -> Windows Firewall -> Turn Windows Firewall On or Off -> Turn off all three. | Start -> Control Panel -> View by "Small icons" -> Windows Firewall -> Turn Windows Firewall On or Off -> Turn off all three. | ||
+ | |||
+ | === Configuring firewall on Linux === | ||
+ | |||
+ | To set the firewall for Linux to only allow what is necessary, please see the [[FOG security]] article. |
Latest revision as of 00:42, 3 May 2016
Contents
Fedora 20/21/22/23
Disable/stop Firewall
systemctl disable firewalld.service
systemctl stop firewalld.service
Can be undone with "start" and "enable".
Check Firewall in Fedora 20/21/22/23
systemctl status firewalld.service
Fedora 16
Add /bin/bash to /etc/shells as the vsftpd yum install does not do it correctly causing tftp timeout message
Debian/Ubuntu
sudo iptables -L
If disabled, the output should look like this:
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
Disable Ubuntu Firewall
sudo ufw disable
Disable Debian Firewall
iptables -F iptables -X iptables -t nat -F iptables -t nat -X iptables -t mangle -F iptables -t mangle -X iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT
Other debian settings:
/etc/hosts.deny
This setting in the above file will deny traffic from any source except locally:
ALL:ALL EXCEPT 127.0.0.1:DENY
Comment out this line like so:
#ALL:ALL EXCEPT 127.0.0.1:DENY
Windows 7
Start -> Control Panel -> View by "Small icons" -> Windows Firewall -> Turn Windows Firewall On or Off -> Turn off all three.
Configuring firewall on Linux
To set the firewall for Linux to only allow what is necessary, please see the FOG security article.