Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- iptables -t nat -A PREROUTING -p tcp -d 1.2.3.4 -j DNAT --to-destination 127.0.0.1:12345
- iptables -t nat -A POSTROUTING -p tcp -s 192.168.1.0/24 -d 1.2.3.4 -j SNAT --to-source 127.0.0.1
- iptables -t nat -A POSTROUTING -p tcp -s 192.168.1.0/24 -d 127.0.0.1 -j SNAT --to-source 127.0.0.1
- root@vm8583:~# ip link add bogus type dummy
- root@vm8583:~# sysctl net.ipv4.conf.eth0.arp_ignore=3
- root@vm8583:~# ip addr add 10.0.0.1/32 bogus scope host
- root@vm8583:~# ip link set bogus up
- root@vm8583:~# ip link show bogus
- 4: bogus: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT
- link/ether 5e:8b:38:f3:46:ce brd ff:ff:ff:ff:ff:ff
- arp_ignore - INTEGER
- Define different modes for sending replies in response to
- received ARP requests that resolve local target IP addresses:
- . . .
- 3 - do not reply for local addresses configured with scope host,
- only resolutions for global and link addresses are replied
- 4-7 - reserved
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement