git: ipfw3: support ip:port in filter from and new filter src-port 1. support ip:port in both filters 'from' and 'to' 2. new filters 'src-port' and 'dst-port'

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Oct 6 11:10:04 PDT 2015


commit c1bde762c0c4b473a706ddf26e8d023bc4f24a22
Author: Bill Yuan <bycn82 at leaf.dragonflybsd.org>
Date:   Fri Oct 2 02:19:44 2015 +0800

    ipfw3: support ip:port in filter from and new filter src-port
    1. support ip:port in both filters 'from' and 'to'
    2. new filters 'src-port' and 'dst-port'
    
    e.g. block UDP packets to 192.168.1.1:1813
    ipfw3 add deny udp to 192.168.1.1:1813
    ipfw3 add deny udp to 192.168.1.1 dst-port 1813

Summary of changes:
 lib/libipfw3/basic/ipfw3_basic.c   | 151 ++++++++++++++++++++++++++++++-------
 sys/net/ipfw3_basic/ip_fw3_basic.c |  84 +++++++++++++++++++++
 sys/net/ipfw3_basic/ip_fw3_basic.h |   6 +-
 3 files changed, 211 insertions(+), 30 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c1bde762c0c4b473a706ddf26e8d023bc4f24a22


-- 
DragonFly BSD source repository



More information about the Commits mailing list