New answers tagged router
Best way I found for that matter is to print the dhcp configuration files, found on /var/lib/dhcp/dhclient.(interface).leases, and look for the routers definition there
All you need is this single rule: iptables -t nat -I PREROUTING --src 0/0 --dst 172.16.0.2 This will insert into PREROUTING chain (?=-I) of the nat table (-t nat) the rule, that says: Any incomming (-src 0/0) packets with destination address 172.16.0.2 (--dst 172.16.0.2). Things to remember are: To redirect incoming traffic means inserting rules into ...
Top 50 recent answers are included