From owner-freebsd-questions@freebsd.org Fri Jul 14 13:53:54 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 88B93DA253B for ; Fri, 14 Jul 2017 13:53:54 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2B513666B2 for ; Fri, 14 Jul 2017 13:53:54 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by mail-wm0-x22a.google.com with SMTP id 62so21228496wmw.1 for ; Fri, 14 Jul 2017 06:53:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=CHHqqhPyUvjGVryZKE/Y2QRw2UFz7Z+5flnVt2p/8o4=; b=DUZTtaenxNMApz8YvKppziUuyV2DIr4wFb3cHuOYEEeCDZCMmoErK4ss9Y5dNExYxg CHFZ1TTd2EWpiMK+IG0why7x3e6Gqpd4PxDC6G6cNGaOc6pbGX4Sy/qGGXqGEgtEYWLn baHygENhmuSOzOauiFjZuG/KHs9NPfixD7SzO6vMZhprCEpRmsMVwX7k5SNg4ja3tWaP jXQgoxMBHUhcSdaoAo8vx5IJxSpBObUnLq6Tv0t1HHvUD6pLzSrerKAYkyO0v0/eZoF7 kHHsteHzI1CTPdaROuw1ydt9Eo1RYi5G8v6xezGZtgplDVd4+YCGDPg6CY6QYtQvhb2n 10cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CHHqqhPyUvjGVryZKE/Y2QRw2UFz7Z+5flnVt2p/8o4=; b=jUc/Lv/AUacaP41LhZ9WZbQdEGnkYQhq80GNe10IJ6ju2rE6vQ+tFJ1mESO3NAw3Xy 8X0U75oM4vB+vSr+oPbRB7i5pI559oOjHWHUQDD4bpcsLDMCPSI7DPs/r1DQmtFvD8OC NLkps2lAkHoeaRwSYsyhGdRsZukRGkkpTgrP0YOEG2yP3wYUA74GTCZXyiIvJ6J4Svk0 rGP2fFrUTm6WS9hO1zkwr9bP/+xhh3wA3UYUTgOeh2sr4D0csayXKwIgelXSctM2h9Vf WmWf4egVnphaItrH29M3ZTW76Ju2b+REOB3Wihe5SiORYScaJSrpWL4xaw1WjfXlrett PFxg== X-Gm-Message-State: AIVw110iMxUa0c7opGsN88jVCfKOcGW5ayMPmdA/QHjsWJ141QC4jT29 SN6WSH9mHj8IZTCs X-Received: by 10.28.125.3 with SMTP id y3mr2975431wmc.9.1500040432277; Fri, 14 Jul 2017 06:53:52 -0700 (PDT) Received: from gumby.homeunix.com ([81.17.24.158]) by smtp.gmail.com with ESMTPSA id w30sm9432914wrb.49.2017.07.14.06.53.50 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Jul 2017 06:53:51 -0700 (PDT) Date: Fri, 14 Jul 2017 14:53:47 +0100 From: RW To: freebsd-questions@freebsd.org Subject: Re: Unable to set rule using service name Message-ID: <20170714145347.40401bf7@gumby.homeunix.com> In-Reply-To: References: X-Mailer: Claws Mail 3.15.0 (GTK+ 2.24.31; amd64-portbld-freebsd10.3) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jul 2017 13:53:54 -0000 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