command for opening port 6000-6039 to the local network

Noah Eiger nme@earthlink.net
Thu, 26 Jul 2001 09:16:32 -0700


A bit off topic but does this syntax also work for forwarding a range of
ports. For example if I wanted to port forward 6000 through 6039 could I
use:

iptables -A PREROUTING -t nat -p tcp -d 10.3.3.3 --dport 6000:6039 -j DNAT
--to 192.168.1.200:6000:6039



On 7/26/01 8:25 AM, "Jason Pappas" <jpappas@sharemedia.com> wrote:

>> so yours should be:
>> iptables -A INPUT -p tcp --dport 6000:6039 -j ACCEPT
> 
> should this be on the input or forward table of your firewall?
> 
> 
> ----- Original Message -----
> From: "Danny Rappleyea" <danny.rappleyea@etrials.com>
> To: "'Wolfgang Pichler'" <wpichler@dialog-gruppe.at>; "iptables
> maillinglist" <netfilter@lists.samba.org>
> Sent: Thursday, July 26, 2001 11:06 AM
> Subject: RE: command for opening port 6000-6039 to the local network
> 
> 
>> my similar line that works is:
>> iptables -A NetDiagTools -p udp --dport 33434:33523 -j ACCEPT
>> 
>> so yours should be:
>> iptables -A INPUT -p tcp --dport 6000:6039 -j ACCEPT
>> 
>> Danny
>> 
>> -----Original Message-----
>> From: Wolfgang Pichler [mailto:wpichler@dialog-gruppe.at]
>> Sent: Thursday, July 26, 2001 10:20 AM
>> To: iptables maillinglist
>> Subject: command for opening port 6000-6039 to the local network
>> 
>> 
>> how can i open port 6000-6039 for the inner network ?
>> iptables -A INPUT -p tcp --dport 6000-6039 usw. doesn't work -> i've also
>> triied 6000:6039 or 6000--6039.
>> 
>> Pichler Wolfgang
>> 
>> Dialog Austria
>> Software & Telekommunikation Ges.m.b.H.
>> Goethestrasse 93
>> A-4020 Linz
>> 
>> Tel +43 (0) 70 662774 37
>> Fax +43 (0) 70 662774 22
>> Mail mailto:wpichler@dialog-gruppe.at
>> Web www.dialog-gruppe.at
>> 
>> +++
>> 
>> 
>> 
>> 
> 
> 

nme

----------------------------------------------
Noah Eiger
nme@earthlink.net
----------------------------------------------