Can arptables be used to SNAT TCP/UDP traffic?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Forgive my ignorance, but I have a basic question regarding use of
arptables. For a peculiar VPN address management scenario, I want to
change source address of incoming packet destined for the box (inner
IP packet in the IPsec tunnel terminated on the box) to a certain
value. With iptables, SNAT can be configured only for POSTROUTING
chain which won't be hit in this case as the packet is destined for
the box. Is there a way this can be done with arptables (tried command
below, but it's not making any difference), or do arptables rules
apply only to ARP packets?

arptables -A INPUT -s 192.168.103.1 -d 172.16.2.1 -i eth0 --proto-type
"ipv4" -j mangle --mangle-ip-s 172.16.4.1

Thanks in advance

Regards
Ajay
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux