Jump to content

cyber_eagle

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Добрый день! В результате экспериментов наткнулся на любопытное поведение iptables: ip netns add pr1; ip link add pr1if0 type veth peer name pr1if1; ip link set dev pr1if1 netns pr1; ip link set pr1if0 up; ip address add 1.1.1.1/32 dev pr1if0; ip route add local 172.20.1.0 dev pr1if0; ip route add 172.20.1.0/31 dev pr1if0 src 172.20.1.0; ip netns exec pr1 ip link set lo up; ip netns exec pr1 ip link set dev pr1if1 up; ip netns exec pr1 ip address add 172.20.1.1/31 dev pr1if1; ip netns exec pr1 ip route add default via 172.20.1.0 dev pr1if1 src 172.20.1.1; iptables -t nat -A PREROUTING -
×
×
  • Create New...