Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Mar 2020 15:21:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        ipfw@FreeBSD.org
Subject:   [Bug 240650] ipfw(8): Check for IPv4 in add_src() and add_dat, don't assume !IPv6 is IPv4
Message-ID:  <bug-240650-8303-ZPGWxV2Zwt@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-240650-8303@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240650

--- Comment #7 from Neel Chauhan <neel@neelc.org> ---
This patch works for me:

root@tiny:/home/neel # ipfw add 2000 deny all from me to any 22
02000 deny ip from me to any 22
root@tiny:/home/neel # telnet neelc.org 22
Trying 66.42.69.219...
telnet: connect to address 66.42.69.219: Permission denied
Trying 2001:19f0:8001:fed:5400:2ff:fe73:c622...
telnet: connect to address 2001:19f0:8001:fed:5400:2ff:fe73:c622: No route to
host
telnet: Unable to connect to remote host
root@tiny:/home/neel # ipfw del 2000 
ipfw: DEPRECATED: 'del' matched 'delete' as a sub-string
root@tiny:/home/neel # telnet neelc.org 22
Trying 66.42.69.219...
Connected to neelc.org.
Escape character is '^]'.
SSH-2.0-OpenSSH_7.8 FreeBSD-20180909
^]
telnet> quit
Connection closed.
root@tiny:/home/neel #

Can you give me an example of your ipfw script?

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240650-8303-ZPGWxV2Zwt>