iptables:basic_firewall
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
iptables:basic_firewall [2016/11/10 15:25] – created peter | iptables:basic_firewall [2019/11/29 16:38] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== IPTables - Basic Firewall ====== | ||
- | <code bash> | ||
- | # Generated by iptables-save v1.4.2 on Wed Jun 10 19:58:15 2009 | ||
- | *filter | ||
- | :INPUT ACCEPT [5193: | ||
- | :FORWARD DROP [11:676] | ||
- | :OUTPUT ACCEPT [3509: | ||
- | -A FORWARD -m state --state RELATED, | ||
- | -A FORWARD -p udp -m udp --dport 53 -j ACCEPT | ||
- | -A FORWARD -i eth1 -o eth1 -j ACCEPT | ||
- | -A FORWARD -s 192.168.1.120/ | ||
- | -A FORWARD -s 192.168.1.120/ | ||
- | -A FORWARD -j REJECT --reject-with icmp-port-unreachable | ||
- | COMMIT | ||
- | # Completed on Wed Jun 10 19:58:15 2009 | ||
- | # Generated by iptables-save v1.4.2 on Wed Jun 10 19:58:15 2009 | ||
- | *nat | ||
- | :PREROUTING ACCEPT [57513: | ||
- | : | ||
- | :OUTPUT ACCEPT [14:922] | ||
- | -A PREROUTING -s ! 192.168.1.120/ | ||
- | -A POSTROUTING -s 192.168.1.0/ | ||
- | -A POSTROUTING -s 192.168.1.0/ | ||
- | COMMIT | ||
- | # Completed on Wed Jun 10 19:58:15 2009 | ||
- | </ |
iptables/basic_firewall.1478791540.txt.gz · Last modified: 2020/07/15 09:30 (external edit)