Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jul 2017 14:53:47 +0100
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Unable to set rule using service name
Message-ID:  <20170714145347.40401bf7@gumby.homeunix.com>
In-Reply-To: <CAC9ZwGaXeZJrCpPu44%2B9kUmGwgWp8MRaaPjqo5Bs-BmZBkTmbQ@mail.gmail.com>
References:  <CAC9ZwGaXeZJrCpPu44%2B9kUmGwgWp8MRaaPjqo5Bs-BmZBkTmbQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 14 Jul 2017 16:43:56 +0530
Kulamani Sethi wrote:

> Hi,
> I want to set a rule for a particular service URL which running on a
> remote server.
> I know the IP but don't know the port number where that service is
> running. If i set rule for IP then it will applied for entire
> services running over there.
> 
> There is a option in IPFW rule we can set either port number or name,
> but it does not accepting using name. Here is a example for my case.
> 
> suppose URL for test1 service  http://x.x.x.x/test1
>                  URL for test2 service http://x.x.x.x/test2
> 
> I tried a rule, "ipfw add 104 deny log  ip from x.x.x.x test1 

test1 and test2 aren't port numbers, the port number here is 80 for http



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170714145347.40401bf7>