eine kleine Routingfrage.
Aktuell sieht meine iptables-Regel folgendermaßen aus:
Code: Alles auswählen
iptables -t nat -A PREROUTING -d 92.x.x.x -j DNAT --to 10.0.0.10
iptables -t nat -A POSTROUTING -s 10.0.0.10 -j SNAT --to 92.x.x.x
Danke
Code: Alles auswählen
iptables -t nat -A PREROUTING -d 92.x.x.x -j DNAT --to 10.0.0.10
iptables -t nat -A POSTROUTING -s 10.0.0.10 -j SNAT --to 92.x.x.x
Wenn nur mitgeschnitten werden soll, dann so?:ROUTE
This is used to explicitly override the core network stack's routing
decision. mangle table.
--oif ifname
Route the packet through `ifname' network interface
--iif ifname
Change the packet's incoming interface to `ifname'
--gw IP_address
Route the packet via this gateway
...
...
--continue
Behave like a non-terminating target and continue traversing the
rules. Not valid in combination with `--iif' or `--tee'
--tee Make a copy of the packet, and route that copy to the given des-
tination. For the original, uncopied packet, behave like a non-
terminating target and continue traversing the rules. Not valid
in combination with `--iif' or `--continue'