File: ipfilter.result

package info (click to toggle)
ferm 2.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,140 kB
  • sloc: perl: 2,839; sh: 126; makefile: 120
file content (10 lines) | stat: -rw-r--r-- 708 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
iptables -t filter -A INPUT -s 192.168.0.40 -p tcp --dport ssh -j ACCEPT
ip6tables -t filter -A INPUT -s 2001:abcd:ef::40 -p tcp --dport ssh -j ACCEPT
iptables -t filter -A INPUT -s 192.168.0.40 -j ACCEPT
ip6tables -t filter -A INPUT -s 2001:abcd:ef::40 -j ACCEPT
iptables -t filter -A INPUT -s 192.168.0.0/24 -o eth0 -j SNAT --to-source 10.0.0.1
ip6tables -t filter -A INPUT -s 2001:abcd:ef::/64 -o eth0 -j SNAT --to-source 2001:efff::1
iptables -t filter -A OUTPUT -d 192.168.0.40 -p tcp --dport ssh -j ACCEPT
ip6tables -t filter -A OUTPUT -d 2001:abcd:ef::40 -p tcp --dport ssh -j ACCEPT
iptables -t filter -A FORWARD ! -d 192.168.0.40 -j DROP
ip6tables -t filter -A FORWARD ! -d 2001:abcd:ef::40 -j DROP