Hello. I have to reproduce this 2 rules on shorewall. How i can do this? Rule1: iptables -t nat -A PREROUTING -p tcp --destination-port 1863 -j REDIRECT --to-ports 16667 Rule2: iptables -t nat -A OUTPUT -p tcp --destination-port 1863 -m owner --uid-owner 100 -j REDIRECT --to-ports 16667 The first rule i´m do with this: REDIRECT loc 16667 tcp 1863 But to the second i don´t now how to do. Thanks for any help, Wilson Galafassi ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don''t miss this year''s exciting event. There''s still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
Wilson A. Galafassi Jr. wrote:> Hello. > > I have to reproduce this 2 rules on shorewall. > How i can do this? > > Rule1: iptables -t nat -A PREROUTING -p tcp --destination-port 1863 -j > REDIRECT --to-ports 16667 > Rule2: iptables -t nat -A OUTPUT -p tcp --destination-port 1863 -m owner > --uid-owner 100 -j REDIRECT --to-ports 16667 > > The first rule i´m do with this: REDIRECT loc 16667 > tcp 1863 > But to the second i don´t now how to do.REDIRECT $fw 16667 tcp 1863 - - - 100 -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 ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don''t miss this year''s exciting event. There''s still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone