Hi!
I have to connect to a router to share the bandwith cause my sister moved in, anyone know how to do this?
I'm using FreeBSD and IPFW for the firewall.
Here are the rules I wrote.
"$IPFW" add 1 set 1 check-state ip from any to any "$IPFW" add 10 set 1 drop log all from me to any in recv eth0 "$IPFW" add 20 set 1 drop log all from 192.168.1.0/24 to any in recv eth0 "$IPFW" add 30 set 1 permit all from any to any via lo keep-state "$IPFW" add 50 set 1 permit log tcp from me to 192.168.1.0/24 53 out setup keep-state "$IPFW" add 60 set 1 permit log udp from me to 192.168.1.0/24 53 out keep-state "$IPFW" add 70 set 1 drop log all from any to me in "$IPFW" add 80 set 1 permit all from 192.168.1.0/24 to any keep-state "$IPFW" add 90 set 1 drop log all from any to any "$IPFW" add 100 set 1 drop all from any to any
For some reason I can't connect to the damn router.
I also tried with IPF
Here are the rules I came up with..
--------------- block in log body quick on eth0 from 192.168.1.1 to any block in log body quick on eth0 from 192.168.1.0/24 to any pass in quick on lo proto icmp from any to any keep state pass in quick on lo proto tcp from any to any keep state pass in quick on lo proto udp from any to any keep state pass in quick on lo from any to any pass out quick on lo proto icmp from any to any keep state pass out quick on lo proto tcp from any to any keep state pass out quick on lo proto udp from any to any keep state pass out quick on lo from any to any pass out log or-block body quick proto tcp from 192.168.1.1 to
192.168.1.0/24 port = 53 keep state pass out log or-block body quick proto udp from 192.168.1.1 to 192.168.1.0/24 port = 53 keep state block in log body quick from any to 192.168.1.1 pass in quick proto icmp from 192.168.1.0/24 to any keep state pass in quick proto tcp from 192.168.1.0/24 to any keep state pass in quick proto udp from 192.168.1.0/24 to any keep state pass in quick from 192.168.1.0/24 to any pass out quick proto icmp from 192.168.1.0/24 to any keep state pass out quick proto tcp from 192.168.1.0/24 to any keep state pass out quick proto udp from 192.168.1.0/24 to any keep state pass out quick from 192.168.1.0/24 to any block in log body quick from any to any block out log body quick from any to any block in quick from any to any block out quick from any to anyAnyone knows how to fix this? I've been at this for over an hour! Thanks......