PDA

View Full Version : [ubuntu] iptables question



kahou
May 2nd, 2011, 11:16 PM
Hi,

I have a question regarding iptables.

Suppose I have two linux boxes (Box1 and Box2) which are connected to each other thru a network interface.

I am trying to achieve the following steps:

1. Box1 has a program which keep sending packets to Box2. The packets are just plain IP packets (no tcp/udp).

2. Box2 receives the packets and then echo them back to Box1.

My question is can I configure the iptables on Box2 so that the it can echo whatever packet come from Box1?

Thanks,
Kahou