Hello everyone,
My first post here and I hope I put it in the right section.
Last week my router kicked the bucket so instead of buying a new one I thought I would turn A PC I have here into a gateway / router running FreeBSD.
My knowledge with networking isn't as good as I would like. Tho I'm pretty comfortable with FreeBSD.
I have tried every step-by-step I could find but for some reason I can't get it to work.
My network would look like this:
So far what I have done.
Standard install of FreeBSD
Added to rc.conf
Added to pf.conf
re0 when set to DHCP gets an IP of x.x.135.145, gateway of x.x.134.1, netmask of 255.255.254.0, DNS 64.71.255.198, hostname xxx.cpe.net.cable.rogers.com.
I've set the Windows XP PC with an IP of 192.168.1.100, netmask 255.255.255.0, default gateway 192.168.1.1, DNS 64.71.255.198
My LAN is completely dead, I can't ping anything. No connection at all. Not sure if it's vr0 not being set-up right or I need bind working. I'm lost !
Any help would be great !!
Thanks.
My first post here and I hope I put it in the right section.
Last week my router kicked the bucket so instead of buying a new one I thought I would turn A PC I have here into a gateway / router running FreeBSD.
My knowledge with networking isn't as good as I would like. Tho I'm pretty comfortable with FreeBSD.
I have tried every step-by-step I could find but for some reason I can't get it to work.
My network would look like this:
Code:
Cable modem --> (re0) FreeBSD Box (vr0) --> Hub --> PC's
So far what I have done.
Standard install of FreeBSD
Added to rc.conf
Code:
gateway_enable="YES"
ifconfig_re0="DHCP"
ifconfig_vr0="inet 192.168.1.1 netmask 255.255.255.0"
pf_enable="YES"
defaultrouter="x.x.134.1" (not sure if this is right. It's my ISP's gateway address. I've also tried 192.168.1.1)
Code:
ext_if = "re0"
int_if = "vr0"
nat on $ext_if from $int_net to any -> ($ext_if)
re0 when set to DHCP gets an IP of x.x.135.145, gateway of x.x.134.1, netmask of 255.255.254.0, DNS 64.71.255.198, hostname xxx.cpe.net.cable.rogers.com.
I've set the Windows XP PC with an IP of 192.168.1.100, netmask 255.255.255.0, default gateway 192.168.1.1, DNS 64.71.255.198
My LAN is completely dead, I can't ping anything. No connection at all. Not sure if it's vr0 not being set-up right or I need bind working. I'm lost !
Any help would be great !!
Thanks.