james se wrote: > iptables -t nat -A PREROUTING -i eht0 -p tcp --dport 8023 -j DNAT > --to 192.168.0.5:23 > > and I connect the internet with adsl by using eth0 (then I finally > got ppp0 interface)
Why do you use eth0? You said you get ppp0 when you are connected to the internet. At this time you nic is not eth0 anymore, it is ppp0. IMHO you have to use: iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 8023 -j DNAT --to 192.168.0.5:23 regards michael