Greetings, thanks for your time. I must apologise at the outset for my distinct lack of knowledge pertaining to non-Microsoft products.
I am running Linux Kernel 2.2, and hence am using IPTABLES for my firewall (and masquerading) needs. I recently have been required to open up a small hole in the firewall, specifically incoming TCP ports 6881-6999. (Some intrepid downloaders may recognise those as the default Bittorrent ports.) Being hopelessly clueless with *nix, I searched, finding only an ipTABLES command that would apparently solve said problem:
Code:
iptables -t nat -I PREROUTING -p tcp --dport 6881:6889 -j DNAT --to-destination <host>
... where <host> is the private or internal IP actually running the BT client.
My question is thus: what would the equivalent command be for 2.2, ie IPCHAINS?
I realise that there would be no 'direct' translation, but possibly something simple?
Failing that, would anyone be able to assist me in finding an easier way to poke a hole in the firewall with MASQ and IPCHAINS?
For those who are interested, my current firewall is based on the model at: en.tldp.org/HOWTO/IP-Masquerade-HOWTO/firewall-examples.html#RC.FIREWALL-2.2.X
Any and all assistance is greatly appreciated.