Hi, I'm trying to do this eg. have a ssh daemon runing on port 22 and redirect all connections made in port 2222 to 22, so I can connect to ssh using 2222. I'm trying this rule to test in localhost REDIRECT loc 2222 tcp 22 - But with I do a 'telnet 127.0.0.1 22' a got a correctly reply from ssh daemon but if a do a 'telnet 127.0.0.1 2222' I do not got a correctly reply. I doc I only see rules with DNAT that forward to other machine, what I like is that the same machine that fw runs do this like a alias between to ports. Thanks! -- «Dans la vie, rien n'est à craindre, tout est à comprendre» Marie Sklodowska Curie. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Shorewall-users mailing list Shorewall-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-users
Kazuo Teramoto wrote:> Hi, > I''m trying to do this eg. have a ssh daemon runing on port 22 and > redirect all connections made in port 2222 to 22, so I can connect to > ssh using 2222. > > I''m trying this rule to test in localhost > REDIRECT loc 2222 tcp 22 - > > But with I do a ''telnet 127.0.0.1 22'' a got a correctly reply from ssh > daemon but if a do a ''telnet 127.0.0.1 2222'' I do not got a correctly > reply. > > I doc I only see rules with DNAT that forward to other machine, what I > like is that the same machine that fw runs do this like a alias > between to ports. > > Thanks! >*Add* this REDIRECT- $FW 22 tcp 2222 - 127.0.0.1 -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ teastep@shorewall.net PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net''s Techsay panel and you''ll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV