Did you notice the "-dport" argument? It should be "--dport".
Jesse.linux 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 > > > >_ >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] > -- Don't let your mind wander -- it's too little to be let out alone. _ 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]
