hi jesse,

don't know if my reply to this was sent or not. to be
able to specify --dport, u need to use -p <protocol>.
so u have two rules:

iptables ... -p tcp --dport 22 ... --to ...
iptables ... -p udp --dport 22 ... --to ...

hth,

allan

--- "Jesse.linux" <[EMAIL PROTECTED]> wrote:
> hi all pluggers,
> 
> can anyone tell me why am i getting this error
> 
> "bad argument 22"
> 
> when i start iptables with this rule?
> 
> "iptables -t nat -A PREROUTING -i $INET_FACE -dport
> 22 -j
> DNAT --to-destination 192.168.0.35:22"
> 
> i just want incoming ssh NATed to 192.168.0.35...
> 
> i know ders something wrong in -dport 22.....just
> can't figure it out.....or
> merong mas simpleng rule?
> 
>  ....any idea?......thanks.....
> 
> jesse
>

__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to