Home
last modified time | relevance | path

Searched refs:ipf (Results 1 – 25 of 73) sorted by relevance

123

/freebsd-14-stable/sbin/ipf/ipsend/
HDMakefile41 ipf: target
44 -if [ ! -d ipf ] ; then ln -s .. ipf; fi
143 ipsend: ipf $(OBJS) $(UNIXOBJS)
152 ipft_ef.o: ipf/ipft_ef.c ipf/ipt.h ipf/ipf.h ipf/ip_compat.h
153 $(CC) $(CFLAGS) $(LINUXK) -c ipf/ipft_ef.c -o $@
155 ipft_hx.o: ipf/ipft_hx.c ipf/ipt.h ipf/ipf.h ipf/ip_compat.h
156 $(CC) $(CFLAGS) $(LINUXK) -c ipf/ipft_hx.c -o $@
158 ipft_pc.o: ipf/ipft_pc.c ipf/ipt.h ipf/ipf.h ipf/ip_compat.h
159 $(CC) $(CFLAGS) $(LINUXK) -c ipf/ipft_pc.c -o $@
161 ipft_sn.o: ipf/ipft_sn.c ipf/ipt.h ipf/ipf.h ipf/ip_compat.h
[all …]
/freebsd-14-stable/contrib/netbsd-tests/ipf/
HDt_filter_parse.sh38 ipf)
39 atf_check -o file:exp -e ignore ipf -Rnvf reg
86 test_case i1 itest text ipf
87 test_case i2 itest text ipf
88 test_case i3 itest text ipf
89 test_case i4 itest text ipf
90 test_case i5 itest text ipf
91 test_case i6 itest text ipf
92 test_case i7 itest text ipf
93 test_case i8 itest text ipf
[all …]
HDt_bpf.sh38 ipf)
39 atf_check -o file:exp -e ignore ipf -Rnvf reg
61 broken_test_case bpf1 itest text ipf
HDt_pools.sh49 cp $(atf_get_srcdir)/regress/$1.ipf ipf
56 atf_check -o save:out ipftest -RD -b -P pool -r ipf -i in
59 atf_check -o save:out ipftest -RD -b -r ipf -i in
HDt_nat_ipf_exec.sh37 cp $(atf_get_srcdir)/regress/$1.ipf ipf
64 $format -b -r ipf -N nat -i in
/freebsd-14-stable/libexec/rc/rc.d/
HDipfilter34 if ${ipfilter_program:-/sbin/ipf} -V | grep -q 'Running: yes'; then
35 ${ipfilter_program:-/sbin/ipf} -D
37 ${ipfilter_program:-/sbin/ipf} -T "${ipfilter_optionlist}"
38 ${ipfilter_program:-/sbin/ipf} -E
39 elif ! ${ipfilter_program:-/sbin/ipf} -V | grep -q 'Running: yes'; then
40 ${ipfilter_program:-/sbin/ipf} -E
42 ${ipfilter_program:-/sbin/ipf} -Fa
44 ${ipfilter_program:-/sbin/ipf} \
51 if ${ipfilter_program:-/sbin/ipf} -V | grep -q 'Running: yes'; then
55 ${ipfilter_program:-/sbin/ipf} -D
[all …]
HDipfs27 if ! ${ipfilter_program:-/sbin/ipf} -V | grep -q 'Running: yes' >/dev/null 2>&1; then
35 if [ -r /var/db/ipf/ipstate.ipf -a -r /var/db/ipf/ipnat.ipf ]; then
37 rm -f /var/db/ipf/ipstate.ipf /var/db/ipf/ipnat.ipf
43 if [ ! -d /var/db/ipf ]; then
44 mkdir /var/db/ipf
45 chmod 700 /var/db/ipf
46 chown root:wheel /var/db/ipf
/freebsd-14-stable/sbin/ipf/ipf/
HDMakefile2 PACKAGE= ipf
3 PROG= ipf
4 SRCS= ${GENHDRS} ipf.c ipfcomp.c ipf_y.c ipf_l.c bpf_filter.c
5 MAN= ipfilter.4 ipfilter.5 ipf.8 ipf.4 ipf.5 ipl.4
6 MLINKS= ipf.5 ipf.conf.5 ipf.5 ipf6.conf.5
HDipfcomp.c444 fripf_t *ipf; in emitGroup() local
543 ipf = fr->fr_ipf; in emitGroup()
584 if (ipf != NULL && ipf->fri_mip.fi_v != 0) in emitGroup()
588 if (ipf != NULL && ipf->fri_mip.fi_flx != 0) in emitGroup()
592 if (ipf != NULL && ipf->fri_mip.fi_p != 0) in emitGroup()
596 if (ipf != NULL && ipf->fri_mip.fi_ttl != 0) in emitGroup()
600 if (ipf != NULL && ipf->fri_mip.fi_tos != 0) in emitGroup()
604 if (ipf == NULL) in emitGroup()
606 if ((ipf->fri_ip.fi_p == IPPROTO_TCP) && in emitGroup()
611 if (ipf == NULL) in emitGroup()
[all …]
/freebsd-14-stable/contrib/netbsd-tests/ipf/regress/
HDip13 table role = ipf type = tree number = 1
5 table role = ipf type = tree number = 100
14 table role = ipf type = hash number = 2
16 table role = ipf type = hash number = 200
25 table role = ipf type = hash number = 240 seed = 101
34 table role = ipf type = hash number = 2000 size = 1001
43 table role = ipf type = hash number = 100 size = 1001 seed = 101
52 group-map in role = ipf number = 300 group = 303
61 group-map out role = ipf number = 400 group = 303
70 group-map in role = ipf number = 500
HDip31 pool ipf/dstlist (name fred; policy round-robin;)
3 pool ipf/dstlist (name jack; policy weighted connection;)
5 pool ipf/dstlist (name jill; policy random;)
HDp3.pool1 group-map in role = ipf number = 1010
3 group-map out role = ipf number = 2010 group = 2020
/freebsd-14-stable/contrib/blocklist/libexec/
HDblacklistd-helper20 for f in npf pf ipf; do
54 ipf)
55 /sbin/ipfstat -io | /sbin/ipf -I -f - >/dev/null 2>&1
58 /sbin/ipf -I -f - -s >/dev/null 2>&1 && echo OK
90 ipf)
91 /sbin/ipfstat -io | /sbin/ipf -I -f - >/dev/null 2>&1
94 /sbin/ipf -I -r -f - -s >/dev/null 2>&1 && echo OK
111 ipf)
112 /sbin/ipf -Z -I -Fi -s > /dev/null && echo OK
/freebsd-14-stable/contrib/netbsd-tests/ipf/expected/
HDip11 table role=ipf type=tree number=1
3 table role=ipf type=tree number=100
11 table role=ipf type=hash number=2 size=1
13 table role=ipf type=hash number=200 size=5
21 table role=ipf type=hash number=240 size=5 seed=101
29 table role=ipf type=hash number=2000 size=1001
37 table role=ipf type=hash number=100 size=1001 seed=101
45 group-map in role=ipf number=300 size=5
53 group-map out role=ipf number=400 size=5
61 group-map in role=ipf number=500 size=5
HDip31 pool ipf/dstlist (name fred; policy round-robin;)
3 pool ipf/dstlist (name jack; policy weighting connection;)
5 pool ipf/dstlist (name jill; policy random;)
HDl1.b1 missed 1 ipf log entries: 0 1
16 missed 1 ipf log entries: 0 1
25 missed 1 ipf log entries: 0 1
32 missed 1 ipf log entries: 0 1
35 missed 1 ipf log entries: 0 1
HDl12 missed 1 ipf log entries: 0 1
20 missed 1 ipf log entries: 0 1
27 missed 1 ipf log entries: 0 1
35 missed 1 ipf log entries: 0 1
38 missed 1 ipf log entries: 0 1
/freebsd-14-stable/sbin/ipf/ipftest/
HDMakefile2 PACKAGE= ipf
28 CLEANFILES+= ipf.tab.c ipf.tab.h
82 ipf.tab.c ipf.tab.h: ipf_y.y
83 ${YACC} -b ipf -d ${.ALLSRC}
85 ipf_y.c: ipf.tab.c
87 ipf.tab.c > ${.TARGET}
89 ipf_y.h: ipf.tab.h
91 ipf.tab.h > ${.TARGET}
/freebsd-14-stable/sbin/ipf/ipmon/
HDipmon.c1030 ipflog_t *ipf; in print_ipflog() local
1056 ipf = (ipflog_t *)((char *)buf + sizeof(*ipl)); in print_ipflog()
1057 ip = (ip_t *)((char *)ipf + sizeof(*ipf)); in print_ipflog()
1058 f = ipf->fl_family; in print_ipflog()
1080 char ifname[sizeof(ipf->fl_ifname) + 1]; in print_ipflog()
1082 strncpy(ifname, ipf->fl_ifname, sizeof(ipf->fl_ifname)); in print_ipflog()
1083 ifname[sizeof(ipf->fl_ifname)] = '\0'; in print_ipflog()
1088 sprintf(t, "%d", ipf->fl_unit); in print_ipflog()
1093 if ((ipf->fl_group[0] == (char)~0) && (ipf->fl_group[1] == '\0')) in print_ipflog()
1095 else if (ipf->fl_group[0] == '\0') in print_ipflog()
[all …]
HDipmon_y.y435 ipflog_t *ipf; in check_action() local
444 ipf = (ipflog_t *)(ipl +1); in check_action()
445 ip = (ip_t *)(ipf + 1); in check_action()
459 if ((ipf->fl_flags & FR_INQUE) == 0) { in check_action()
464 if ((ipf->fl_flags & FR_OUTQUE) == 0) { in check_action()
525 if (strncmp(a->ac_group, ipf->fl_group, in check_action()
533 if (strcmp(a->ac_iface, ipf->fl_ifname)) { in check_action()
547 if ((ipf->fl_flags & FF_LOGNOMATCH) != 0) { in check_action()
552 } else if (FR_ISPASS(ipf->fl_flags)) { in check_action()
557 } else if (FR_ISBLOCK(ipf->fl_flags)) { in check_action()
[all …]
/freebsd-14-stable/share/examples/ipfilter/
HDMakefile2 PACKAGE=ipf
15 ipf.conf.permissive ipf.conf.restrictive \
16 ipf.conf.sample ipnat.conf.sample
19 FILES+= ipf-howto.txt
HDREADME4 For information on building ipf based firewalls, read the ipf-howto.txt.
8 http://www.obfuscation.org/ipf/
10 Additional help may be found at the ipf home page:
/freebsd-14-stable/sbin/ipf/
HDMakefile.inc9 CFLAGS+= -I${SRCTOP}/sbin/ipf/common
19 LIBADD+= ipf
24 .PATH: ${SRCTOP}/sbin/ipf/libipf \
25 ${SRCTOP}/sbin/ipf/common
/freebsd-14-stable/contrib/sendmail/libsm/
HDt-inet6_ntop.c44 char *ip, *ipf, ipv6str[INET6_ADDRSTRLEN]; in test() local
49 ipf = sm_inet6_ntop(&addr.sin6_addr, ipv6str, sizeof(ipv6str)); in test()
50 SM_TEST(ipf != NULL); in test()
51 SM_TEST(strcmp(ipf, ip) == 0); in test()
/freebsd-14-stable/tests/sys/netpfil/common/
HDutils.subr61 elif [ ${fw} == "ipf" ]; then
62 jexec ${jname} ipf -E
63 jexec ${jname} ipf -Fa -f $cwd/ipf.rule
94 elif [ ${firewall} == "ipf" ]; then
96 atf_skip "This test requires ipf"
100 atf_skip "This test requires ipf"
138 if [ "$1" = "pf" -o "$1" = "ipfw" -o "$1" = "ipf" -o "$1" = "ipfnat" ]; then

123