Results 1 to 1 of 1
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
03-22-2010 #1
- Join Date
- Oct 2005
- Posts
- 4
iptables loop-back local traffic with masq?
What I would like to do is change the stack so that if a packet comes into interface tap0 that is destined for some device on tap0, I would like to forward it back out of tap0 instead of the default, which would be to drop the packet. Also if it is possible it would be great to be able to masquerade these packet.
I was thinking that this would be possible with iptables with something like:
iptables -a FORWARD -m physdev --physdev-in tap0 physdev --physdev-out tap0 ACCEPT
Any ideas here?
Thanks,
-j