./vhdl20250304/iptables20250304.txt


# (C) David Vajda
# 20250304
# IP-Tables (Roules)

iptables -i lo1 -s 192.168.178.1 -p 80 -j ACCEPT    # alle pakete, die ueber lo1 rein gehen und von der addresse 192.168.178.1 sind und auf port 80 sind, acceptieren
iptables -o lo2 -s 192.168.167.0/24 -p 21 -j DROP   # Vermutung, netzmaske, subnetting geht, alles von 192.168.167.* DROP von lo2 Protokoll 21
iptables -i eth0 -s 192.168.0.0/16 -p 25 -j ACCEPT
iptables -o lo1 -i eth0 -s 192.0.0.0/8 -d 127.0.0.0/8 -j REJECT
iptables -o eth0 -i lo1 -s 127.0.0.0/8 -d 192.168.0.0/16 -j ACCEPT
iptables -o eth1 -s 192.128.0.0/16 -d 127.0.0.1 -j DROP -p 443

ifconfig lo:1 127.0.0.2 netmask 255.0.0.0 up
ifconfig eth:0 192.168.178.25 netmask 255.255.255.0 up
ifconfig lo:2 127.0.0.3 netmask 255.0.0.0 up
ifconfig eth:0 192.168.178.25 netmask 255.255.255.0 down
ifconfig lo:3 127.0.0.4 netmask 255.255.0.0 up