Results 1 to 1 of 1
How can I preserve the source MAC address on a gateway machine before forwarding data it through another eth.
For example I have eth1 and eth2 both belong to different ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-09-2010 #1Just Joined!
- Join Date
- Jun 2010
- Posts
- 2
Preserving Source MAC on Gateway Machine
How can I preserve the source MAC address on a gateway machine before forwarding data it through another eth.
For example I have eth1 and eth2 both belong to different networks. If some data is coming on eth1 on a particular port, by using IPTABLES I am forwarding it to other network through eth2. Before going out of the system packet has the source IP and source MAC of eth2. I want to have only source IP of eth2 but source MAC to be preserved as earlier.
Is it possible to do by adding some rules in iptables POSTROUTING chain ?


Reply With Quote
