From nobody Wed Nov 15 10:52:58 2023 X-Original-To: freebsd-ipfw@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SVg4S6X7Yz51PcM for ; Wed, 15 Nov 2023 10:53:12 +0000 (UTC) (envelope-from shuriku@shurik.kiev.ua) Received: from mail.flex-it.com.ua (mail.flex-it.com.ua [193.239.74.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SVg4R4zgnz4QdW for ; Wed, 15 Nov 2023 10:53:11 +0000 (UTC) (envelope-from shuriku@shurik.kiev.ua) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of shuriku@shurik.kiev.ua designates 193.239.74.7 as permitted sender) smtp.mailfrom=shuriku@shurik.kiev.ua; dmarc=none Received: from [188.231.181.61] (helo=[10.2.1.104]) by mail.flex-it.com.ua with esmtpsa (TLS1.3) tls TLS_AES_128_GCM_SHA256 (Exim 4.96.2 (FreeBSD)) (envelope-from ) id 1r3DW6-000JEl-1s for freebsd-ipfw@freebsd.org; Wed, 15 Nov 2023 12:53:06 +0200 Content-Type: multipart/alternative; boundary="------------zesk5fc00DEZtSjZm3pceN0B" Message-ID: <95ac513b-e042-4fea-920d-b497b91ad870@shurik.kiev.ua> Date: Wed, 15 Nov 2023 12:52:58 +0200 List-Id: IPFW Technical Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-ipfw List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ipfw@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: how to allow printing while ipfw is on Content-Language: uk-UA To: freebsd-ipfw@freebsd.org References: <57084efd-e3e0-46c5-9a61-b87ead42cc79@shurik.kiev.ua> From: Oleksandr Kryvulia In-Reply-To: X-ACL-Warn: SPF failed. 188.231.181.61 is not allowed to send mail from shurik.kiev.ua. X-Spamd-Result: default: False [-2.74 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.45)[-0.452]; R_SPF_ALLOW(-0.20)[+mx:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; XM_UA_NO_VERSION(0.01)[]; ASN(0.00)[asn:35297, ipnet:193.239.72.0/22, country:UA]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MLMMJ_DEST(0.00)[freebsd-ipfw@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[shurik.kiev.ua]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4SVg4R4zgnz4QdW X-Spamd-Bar: -- This is a multi-part message in MIME format. --------------zesk5fc00DEZtSjZm3pceN0B Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit While sending job to your printer with disabled firewall netstat -n | grep 192.168.x.x where 192.168.x.x - IP of your printer. 15.11.23 12:10, Dr. Amr Osman: > Is there an easy way to know the correct port, I am new to freeBSD > > On Wed, Nov 15, 2023, 10:38 AM Oleksandr Kryvulia > wrote: > > 15.11.23 02:58, Dr. Amr Osman: >> I have ipfw on as workstation and I have to disable it to be able to >> connect to my network printer, is there a way to connect printer while >> ipfw is on > > In the general case you need to pass IP traffic to/from your printer. > > Please show output from: >  - ipfw show >  - ifconfig > and which IP your printer has? > --------------zesk5fc00DEZtSjZm3pceN0B Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit While sending job to your printer with disabled firewall

netstat -n | grep 192.168.x.x

where 192.168.x.x - IP of your printer.

15.11.23 12:10, Dr. Amr Osman:
Is there an easy way to know the correct port, I am new to freeBSD 

On Wed, Nov 15, 2023, 10:38 AM Oleksandr Kryvulia <shuriku@shurik.kiev.ua> wrote:
15.11.23 02:58, Dr. Amr Osman:
I have ipfw on as workstation and I have to disable it to be able to
connect to my network printer, is there a way to connect printer while
ipfw is on

In the general case you need to pass IP traffic to/from your printer.

Please show output from:
 - ipfw show
 - ifconfig
and which IP your printer has?

--------------zesk5fc00DEZtSjZm3pceN0B--