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

Re: Nat iptables


it seems like you would like to implement destination NAT.

iptables -t nat -A PREROUTING -i eth1 -p tcp -m tcp --dport 65555 -j
DNAT --to 

Don't forget to create also rules to allow this network traffic in the
FORWARD chain if necessary.

best regards,


On Fri, 2008-10-17 at 13:24 +0200, Jesus arteche wrote:

> Hey,
> I have a network in home, and every conexion have to go trough a
> server, i mean, eth1( is connected to internet and
> eth2( is connected to the local network, with this two
> interfaces what i want to do is what enter by eth1 by specified port
> go to a specified pc in the local network to a specified port. I
> mean...if eth1 notice that there are an incoming connexion to the port
> 65555 (for example) the server should have to send to a
> port 65555...and viceversa
> Someone knows what is the rule for iptables???
> thanks

Attachment: signature.asc
Description: This is a digitally signed message part

Reply to: