ip link add link enp4s0 name wan type vlan id 30
ip link set dev enp4s0 up
ip add add 10.10.10.2/24 dev enp4s0
ip route add 192.168.10.64/27 via 10.10.10.1
ip route get
iptables -n -L INPUT --line-numbers
iptables -A INPUT -p icmp --icmp-type 11 -j
iptables -I INPUT 1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -D CHAIN [line-num]
iptables -P INPUT DROP
//oprava nefunkčnosti 'ping 10.5.0.A'
//se 3. skupinou jsme upravili nastavení na laptopech
pokud:
$ sysctl net.ipv4.conf.all.rp_filter
net.ipv4.conf.all.rp_filter = 1
prenastavte:
sysctl -w net.ipv4.conf.all.rp_filter=0
sysctl -w net.ipv4.conf.default.rp_filter=0
sysctl -w net.ipv4.conf.vlan100.rp_filter=0
sysctl -w net.ipv4.conf.vlan200.rp_filter=0