[ previous ] [ next ] [ threads ]
 From:  sai <sonicsai at gmail dot com>
 To:  stfuhello <stfuhelloworld at yahoo dot com dot au>
 Cc:  "James W. McKeand" <james at mckeand dot biz>, mono <m0n0wall at lists dot m0n0 dot ch>
 Subject:  Re: monowall HTTP ports on LAN side ?!?!*%# Im a n00b
 Date:  Mon, 31 Oct 2005 09:39:26 +0500
On 10/30/05, stfuhello <stfuhelloworld at yahoo dot com dot au> wrote:
> After this i wanted to learn of the port which the host locally
> routes HTTP traffic through in order to enter it in as opossed to just
> leaving the port as any ie
> Interface - LAN
> Source - Want to enter it in Here
> Destination - any:80
> I logged the the HTTP rule and opened up a couple of Firefox windows to get
> the ports used on To my suprise Firefox used ports 1675 - 1680?
> and still changing to other ranges . Is there anyway to make Firefox (and
> other applications)use a number of static ports so they can be entered in to
> rules ie see where i have typed "I Want to enter it in Here"

>   I was wondering  if there is way to create rules on the LAN Rules
> Interface that contain a source port number for each application .

As I understand it, its not Firefox that set the source port, its your
operating system. This means that you can have 2 Firefox instances
running at the same time viewing different websites and both will work
fine.  This also helps with NAT.
Source port will almost always be random.