strange problem.

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

 



Hi,

On redhat 7.3 iptables 1.2.5, all needed modules appear to be loaded correctly.

I have the box setup to nat and that works like a charm, but run into problems when I try to port forward to the internal network. Here is what I run, all pretty text book from what I can tell:

$IPTABLES -P INPUT ACCEPT
$IPTABLES -F INPUT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD DROP
$IPTABLES -F FORWARD
$IPTABLES -t nat -F

# Portfw section
$IPTABLES -A FORWARD -i eth0 -o eth1 -p tcp --dport 23 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A PREROUTING -t nat -p tcp -d my.external.ip --dport 23 -j DNAT --to 192.168.0.6:23
#


$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT
$IPTABLES -A FORWARD -j LOG
$IPTABLES -t nat -A POSTROUTING -o $EXTIF -j MASQUERADE

--
No errors are ever given, and iptables -L lists the rules no problem. However port 23 is never opened, or shown via netstat -a.

I am on kernel 2.4.18-19.7.x fwiw

Any help or suggestions would be greatly appreciated.

-mike



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux