( in this case, you need to build your own kernel, because ALTQ is not in the GENERIC kernel -> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html )
DutchDaemon said:Of course /etc/german doesn't exist. FreeBSD doesn't magically contain a table with German IP addresses. You'll have to create it.
You cannot use the http://services.ce3c.be/ciprg/?countrys=GERMANY data directly, because IP addresses need to be listed like 1.2.3.4 or 1.2.3.4/24. Ranges (1.2.3.4-1.2.3.5) do not work. There's probably some way to convert the range data into cidr data, but I have nothing ready.
IgorGlock said:rc.conf
Code:pf_enable="YES" pf_rules="/path/to/pf1.conf" pf_rules="/path/to/pf2.conf"
IgorGlock said:pf.conf:
Code:tcp_services = "{ ssh, 1337, 27015 }" table <german> persist file "/etc/german" set block-policy drop set skip on lo scrub in block log all pass proto icmp pass in proto tcp from <german> to any port $tcp_services pass out
IgorGlock said:but my "/etc/german" file doesn't exist?! Can someone give me a examle?
Can I generate it witch http://services.ce3c.be/ciprg/ ?
sniper007 said:
IgorGlock said:must I put option ALTQ in to: /boot/device.hints ?
IgorGlock said:but: /usr/src/sys/i386/conf: No such file or directory.
:stud I hate this
# pfctl -F all -f /etc/pf2.conf
rules cleared
nat cleared
0 tables deleted.
altq cleared
0 states cleared
source tracking entries cleared
pf: statistics cleared
pf: interface flags reset
/etc/pf2.conf:12: syntax error
pfctl: Syntax error in config file: pf rules not loaded
tcp_services = "{ 21075, 1337, 3306 }"
table <german> persist file "/etc/german"
set block-policy drop
set skip on lo
scrub in
block log all
pass proto icmp
pass in proto tcp from <german> to any port $tcp_services
pass out
block in quick proto { tcp udp } from ! <german> to any port { 1337 21075 }
DutchDaemon said:Something likemight work.Code:block in quick proto { tcp udp } from ! <german> to any port { 1337 21075 }
table <german> persist file "/etc/german"
block in quick proto { tcp udp } from ! <german> to any port { 1337 21075 }
pass out