Linux Netfilter discussions
 help / color / mirror / Atom feed
* RE: open ports
@ 2004-05-17  0:55 azeem ahmad
  2004-05-17  9:43 ` David Cannings
  0 siblings, 1 reply; 7+ messages in thread
From: azeem ahmad @ 2004-05-17  0:55 UTC (permalink / raw)
  To: netfilter

but its not the soulution to just leave the programs that have dynamic 
ports. there must be a solution for them in netfilter

Regards
Azeem


>From: "Rob Sterenborg" <rob@sterenborg.info>
>To: <netfilter@lists.netfilter.org>
>Subject: RE: open ports
>Date: Sun, 16 May 2004 12:03:47 +0200
>
> > i m also doing so but there is the problem of some programs
> > that some times use dynamic ports like msn messenger uses
> > dynamic ports for file transfer through it (i think so if it
> > is wrong then tell me please) ad where the log will go and
> > can i specify any file instead of the one default
>
>AFAIK MSN likes to connect to port 1863/tcp by default (it does here) and 
>if
>that failes it will try to connect to some servers on port 80/tcp.
>So, if you ACCEPT connections for both ports 80/tcp and 1863/tcp you should
>be fine. Although some MSN functions like file-transfer might not work.
>
>
>Gr,
>Rob
>
>

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus



^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: open ports
@ 2004-05-16  9:52 azeem ahmad
  2004-05-16 10:03 ` Rob Sterenborg
  2004-05-16 15:09 ` Alistair Tonner
  0 siblings, 2 replies; 7+ messages in thread
From: azeem ahmad @ 2004-05-16  9:52 UTC (permalink / raw)
  To: netfilter

i m also doing so but there is the problem of some programs that some times 
use dynamic ports like msn messenger uses dynamic ports for file transfer 
through it (i think so if it is wrong then tell me please) ad where the log 
will go and can i specify any file instead of the one default

Regards
Azeem


>From: Antony Stone <Antony@Soft-Solutions.co.uk>
>Reply-To: netfilter@lists.netfilter.org
>To: netfilter@lists.netfilter.org
>Subject: Re: open ports
>Date: Sun, 16 May 2004 10:43:06 +0100
>
>On Sunday 16 May 2004 10:22 am, azeem ahmad wrote:
>
> > hi all
> > i have a LAN environment. users from LAN connect to internet via my 
>linux
> > box. on this box iptables firewall runs. what ports should i open to 
>allow
> > users to get all the services like all chat rooms and yahoo, msn 
>messengers
> > and browsing http/ftp etc
>
>1. Start with the following ruleset
>
>iptables -P FORWARD DROP
>iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
>iptables -A FORWARD -j LOG
>
>2. Get one of your LAN machines to attempt a connection to something you 
>want
>to be allowed (eg: web borwsing).
>
>3. Look at the LOG entries to see what packets tried to get through the
>firewall (just before DROPped by the default policy).
>
>4. Add a rule, between the two rules given above, to allow that type of
>traffic (eg: for web browsing:
>iptables -I 2 FORWARD -i $intIF -p tcp --dport 80 -j ACCEPT)
>
>5. Read one of the networking tutorials from http://www.netfilter.org to 
>get a
>better understanding of what network protocols should always be allowed 
>(eg:
>both types of DNS), and how to find out what port numbers etc are used by 
>the
>services you want to allow through the system.
>
>Regards,
>
>Antony.
>
>--
>If you can't find an Open Source solution for it, then it isn't a real
>problem.
>
>                                                      Please reply to the 
>list;
>                                                            please don't CC 
>me.
>
>

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail



^ permalink raw reply	[flat|nested] 7+ messages in thread
* open ports
@ 2004-05-16  9:22 azeem ahmad
  2004-05-16  9:43 ` Antony Stone
  0 siblings, 1 reply; 7+ messages in thread
From: azeem ahmad @ 2004-05-16  9:22 UTC (permalink / raw)
  To: netfilter

hi all
i have a LAN environment. users from LAN connect to internet via my linux 
box. on this box iptables firewall runs. what ports should i open to allow 
users to get all the services like all chat rooms and yahoo, msn messengers 
and browsing http/ftp etc

Regards
Azeem

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-05-17  9:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-17  0:55 open ports azeem ahmad
2004-05-17  9:43 ` David Cannings
  -- strict thread matches above, loose matches on Subject: below --
2004-05-16  9:52 azeem ahmad
2004-05-16 10:03 ` Rob Sterenborg
2004-05-16 15:09 ` Alistair Tonner
2004-05-16  9:22 azeem ahmad
2004-05-16  9:43 ` Antony Stone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox