My Tech Notes
Showing posts with label
iptables
.
Show all posts
Showing posts with label
iptables
.
Show all posts
centos: save the iptables changes
›
sudo service iptables save
iptables: delete a rule
›
# delete the rule by specifying the whole rule iptables -D INPUT -p tcp -m state --state NEW -m tcp --dport 4000 -j ACCEPT # list the rul...
iptables: insert a rule at a specific line number
›
# list the rules with line numbers iptables -nL --line-numbers # insert a rule at line 5 iptables -I INPUT 5 -p tcp -m state --state NEW -m...
1 comment:
multicast ip address 224.0.0.251 port 5353
›
To enable Bonjour/mDNS, you need to allow traffic from multicast ip 224.0.0.251 on port 5353.
Enable simple iptables firewall on Debian 7 Wheezy
›
Install iptables-persistent : sudo apt-get install iptables-persistent Edit /etc/iptables/rules.v4 and /etc/iptables/rules.v6 # /etc/ip...
shell script: update ufw rules for the hosts with dynamic ip addresses
›
The shell script to check the ip address for the host and update the ufw rules: #!/bin/bash HOSTS_ALLOW=/etc/ufw-dynamic-hosts.allow IPS...
6 comments:
iptables: mac address filtering
›
iptables supports MAC address rules. For example you can block a MAC address: /sbin/iptables -A INPUT -m mac --mac-source 00:00:11:22:22:33...
simple iptables firewall script
›
#!/bin/sh ### BEGIN INIT INFO # Provides: iptables # Required-Start: mountkernfs $local_fs # Required-Stop: $local_fs # Defa...
how to reset iptables
›
Reset iptables(IPV4): # set default policies to allow everything sudo /sbin/iptables --policy INPUT ACCEPT sudo /sbin/iptables --p...
2 comments:
iptables: add new chains to log drop/accept messages
›
To create the chains to log&drop or log&accept: # Create LOGDROP chain /sbin/iptables -N LOGDROP /sbin/iptables -A LOGDROP -m limit ...
Enable iptables logging on Ubuntu Linux
›
The following solution can enable the iptables logging to /var/log/iptables.log: Make sure you have --log-prefix set in your iptables entr...
›
Home
View web version