Re: IPTables - Unix script and Smoothwall
Samuel Gordon-Stewart <smoothwallsamuel-/[email protected]> Mon, 1 Nov 2004 00:53:21 -0800 (PST)
| Newsgroups | gmane.comp.security.firewalls.smoothwall.general |
|---|---|
| Message-ID | <[email protected]> |
--- David Wilson <dgwilson-wUU9E3n5/[email protected]> wrote: > "someone" has it working and used the script with > the IPTABLES configuration > to resolve the issue along with a minor modification > to the game config > itself. > > Basically each player on the internal LAN is > allocated a specific port > number. Thus now I know that 192.168.10.200 will > play on port 16200 > > What I don't understand is what the script is trying > to do when it executes: > iptables -t nat -A PREROUTING -p udp -d $EXT_IP > --dport $PORT_II -j DNAT > --to-destination $HOST:$PORT_II > iptables -t nat -A POSTROUTING -p udp -s $HOST > --sport $PORT_II -j SNAT > --to-source $EXT_IP:$PORT_II Have a look at http://martybugs.net/smoothwall/iptables.cgi It doesn't specificly cover what you are asking about (at least I don't think it does), but it does give good examples of the correct methods of adding IPTables scripts to smoothwall. samuel ===== I must be really old in dog years! Provide some stats for my school assignment http://multivote.sparklit.com/web_poll.spark/3055 Listen to my lovely music www.thefunkyasylum.com/notnice.mp3 Protect your network www.smoothwall.org __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail _______________________________________________ gpl mailing list [email protected] http://lists.smoothwall.org/mailman/listinfo/gpl SmoothWall Stash - Buy Our Stuff! http://cafepress.com/smoothwall