Tim <Timmy14@notformail.com> writes:
>Hi!
>I have to connect to a router to share the bandwith cause my sister moved
>in, anyone know how to do this?
Thwo possibilities.
1) Buy asnother ethernet card for your computer. Run a line from her
computer to yours. Haveyour computer act as a masquarading forwarder for
hers. This requires your macine to be on whenever hers is.
2) install an intelligent router which will make the connections with the
ISP. You and she just plug into the ethernet ports on the router.
The router will handle all the negotiations with the ISP.
>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.
First you turn off all firewalling. You find out what address the router
uses, and connect to it with http. You set it up.
Then when you know you can talk with it, and everything works, then set up
a firewall on your own machine.
>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 any
>Anyone knows how to fix this? I've been at this for over an hour!
>Thanks......
Received on Mon Nov 21 02:35:18 2005