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

Re: forwarding iptable packets



On Thu, Feb 02, 2006 at 07:11:07AM +0800, Jon  Miller wrote:
> I'm having a major problem trying to forward packets from either a
> workstation of the LAn to the Internet.  I want to be sure I'm doing
> this correctly.

> I set a forward rule:
> $IPT -A FORWARD -i $INT_IFACE -o eth1 -p tcp --dport 1262 -j ACCEPT
> 
> Then I set a PREROUTING rule 
> $IPT -A PREROUTING -i $EXT_IFACE -p tcp --dport 1262 -j DNAT --to-destination 192.168.xxx.xxx
> 
> All I can see using tethereal on the network is SYN packets.
> 
> Any idea what I'm doing wrong?

try
$IPT -t nat -A PREROUTING -i $EXT_IFACE -p tcp --dport 1262 -j DNAT
--to-destination 192.168.xxx.xxx

The forward rule looks OK.

Attachment: signature.asc
Description: Digital signature


Reply to: