Hi Guys,
I realy loved FreeBSD OS for many reasons that's why I come back to run my new server with FreeBSD v7.1 and need your help please.
I want to run Freebsd as firewall router for internet sharing + Squid Proxy Caching ( last year I built FreeBSD v6 and it was working fine, now with FreeBSD v7.1 I can't !)
FreeBSD server can get internet, but problem other PCs don't get any internet, only lan connection is available, PF firewall stoped.
my chart:
DSL= speedtuch router ( two ip tables on it 192.168.20.0/24 and 10.0.0.0/24)
[DSL]--[FreeBSD server/NAT/DHCP]--[switch]--[PCs]
**my ifconfig
**my rc.conf
**my dhcp.conf
> netstat -rn
My Regards
atheer
I realy loved FreeBSD OS for many reasons that's why I come back to run my new server with FreeBSD v7.1 and need your help please.
I want to run Freebsd as firewall router for internet sharing + Squid Proxy Caching ( last year I built FreeBSD v6 and it was working fine, now with FreeBSD v7.1 I can't !)
FreeBSD server can get internet, but problem other PCs don't get any internet, only lan connection is available, PF firewall stoped.
my chart:
DSL= speedtuch router ( two ip tables on it 192.168.20.0/24 and 10.0.0.0/24)
[DSL]--[FreeBSD server/NAT/DHCP]--[switch]--[PCs]
**my ifconfig
Code:
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=b<RXCSUM,TXCSUM,VLAN_MTU>
ether 00:02:b3:b7:0a:10
inet 10.0.0.254 netmask 0xffffff00 broadcast 10.0.0.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
ether 00:07:e9:18:05:92
inet 192.168.20.1 netmask 0xffffff00 broadcast 192.168.20.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
em1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
ether 00:08:74:da:bc:eb
media: Ethernet autoselect
status: no carrier
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
pfsync0: flags=0<> metric 0 mtu 1460
syncpeer: 224.0.0.240 maxupd: 128
pflog0: flags=0<> metric 0 mtu 33204
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
**my rc.conf
Code:
gateway_enable="YES"
hostname="deir.atheer.net"
ifconfig_fxp0="inet 10.0.0.254 netmask 255.255.255.0"
ifconfig_em0="inet 192.168.20.1 netmask 255.255.255.0"
keymap="us.iso"
linux_enable="YES"
moused_enable="NO"
moused_type="NO"
sshd_enable="YES"
defultrouter="10.0.0.138"
dhcpd_enable="YES"
dhcpd_ifaces="em0"
webmin_enable="YES"
Code:
option domain-name "atheer.net";
option domain-name-servers 192.168.20.1, 213.244.72.31, 212.14.234.36;
default-lease-time 86400;
max-lease-time 86400;
authoritative;
ddns-update-style none;
log-facility local7;
subnet 192.168.20.0 netmask 255.255.255.0 {
range 192.168.20.11 192.168.20.100;
option routers 192.168.20.1;
option subnet-mask 255.255.255.0;
}
Code:
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
10.0.0.0/24 link#1 UC 0 0 fxp0
127.0.0.1 127.0.0.1 UH 0 26 lo0
192.168.20.0/24 link#2 UC 0 0 em0
192.168.20.1 00:07:e9:18:05:92 UHLW 1 32 lo0
192.168.20.100 00:01:02:a1:e9:69 UHLW 1 532 em0 1017
Internet6:
Destination Gateway Flags Netif Expire
::1 ::1 UHL lo0
fe80::%lo0/64 fe80::1%lo0 U lo0
fe80::1%lo0 link#7 UHL lo0
ff01:7::/32 fe80::1%lo0 UC lo0
ff02::%lo0/32 fe80::1%lo0 UC lo0
atheer