Hi!
I Have a problem, I have a dedicated server in OVH, FreeBSD 9.0 x64, kernel compiled with options IPFW + Dummynet and HZ.
I take my kernel config, ipfw rules, kldstat and anything else we need to help me.
kldstat:
Kernel config:
rc.conf
ipfw.rules
sysctl.conf
I need Help...
Thanks!
I Have a problem, I have a dedicated server in OVH, FreeBSD 9.0 x64, kernel compiled with options IPFW + Dummynet and HZ.
I take my kernel config, ipfw rules, kldstat and anything else we need to help me.
kldstat:
Code:
kldstat
Id Refs Address Size Name
1 1 0xffffffff80200000 1238498 kernel
Code:
#ipfw
options IPFIREWALL # required for IPFW
options IPFIREWALL_VERBOSE # optional; logging
options IPFIREWALL_VERBOSE_LIMIT=10 # optional; don't get too many log entries
options IPDIVERT # needed for natd
options DUMMYNET
options HZ=1000
Code:
#ipfw
firewall_enable="YES"
firewall_script="/usr/local/etc/ipfw.rules"
dummynet_enable="YES"
Code:
IPF="ipfw add"
ipfw -f flush
ipfw -f pipe flush
ipfw pipe 2 config bw 2Mbit/s
ipfw pipe 3 config bw 4Mbit/s
#loopback
$IPF 10 allow all from any to any via lo0
$IPF 20 deny all from any to 127.0.0.0/8
$IPF 30 deny all from 127.0.0.0/8 to any
$IPF 40 deny tcp from any to any frag
# statefull
$IPF 50 check-state
$IPF 60 allow tcp from any to any established
$IPF 70 allow all from any to any out keep-state
$IPF 80 allow icmp from any to any
# open port ftp (20,21), ssh (22), mail (25)
# http (80), dns (53) etc
$IPF 110 allow all from any to any 5525 in
$IPF 115 allow all from any to any 5525 out
$IPF 120 pipe 3 tcp from any to any 80 in
$IPF 134 pipe 3 tcp from any to any 80 out
and many more...
Code:
net.link.ether.ipfw=1
I need Help...
Thanks!