I have two interfaces eth0 and eth1. I want all traffic on eth0 to be forwarded to eth1 without changing anything to packet(origin Src/Dst IP, port etc. has to same). I found some articles about forwarding but they were using NAT to relay traffics something like this.
sudo iptables -F FORWARD sudo iptables -P FORWARD DROP sudo iptables -A FORWARD -o eth1 -j ACCEPT sudo iptables -A FORWARD -o eth0 -j ACCEPT sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Is there any way to forward traffics without doing NAT?