Hello BSD people,
For the past few week, this is my first attempt at actually hooking computers together in any kind of fashion. I read a lots of examples and no matter what I tried my set-up would not working completely and this is the best I came up with so far ...
From my internel Windows LAN machine I can ping the Gateway but I CANNOT ping any website by name or number (ping yahoo.com or 67.195.145.137). I also cannot surf the INTERNET using any web-browser, IE, Opera or Firefox.
On the GATEWAY machine I can ping to the out-side by name or number but I CANNOT ping my own internal Windows LAN machine.
At one point I could not even ping a website by name because of my packet filter rules (I know nothing, just using something I found) so I disconnected pf by way of rc.conf to see how far I could get. As you see I been stopped again and I have ran out of ideas for trial and error by adding or disconnecting stuff. It's like the only thing available to do is pull-the-plug and call it quits
Kind of long but here's all the info I could find. If there is more related files I would really like to know where FreeBSD put them so I can add it to this list.
Could someone please tell me what am I'm doing wrong or what did I forget to do? Networking is not as hard as I once thought but I am shock after all of these days of reading and what-nots, I'm stuck.
Thanks in advance
........................ From Gateway machine numeric IP addresses will
........................ ping but named IP addresses will not ping.
........................
Code:
bash-4.1# ping -c 4 yahoo.com
ping: cannot resolve yahoo.com: Host name lookup failure
bash-4.1# ping -c 4 67.195.145.137
PING 67.195.145.137 (67.195.145.137): 56 data bytes
64 bytes from 67.195.145.137: icmp_seq=0 ttl=57 time=94.823 ms
64 bytes from 67.195.145.137: icmp_seq=1 ttl=57 time=93.725 ms
64 bytes from 67.195.145.137: icmp_seq=2 ttl=57 time=91.254 ms
64 bytes from 67.195.145.137: icmp_seq=3 ttl=57 time=85.232 ms
--- 67.195.145.137 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 85.232/91.258/94.823/3.712 ms
bash-4.1#
........................
........................ /etc/rc.conf
........................ NOTE: I tried pf commented-out
........................ or not and it still can't ping by (IP) name
........................
Code:
ifconfig_re0="DHCP"
ifconfig_re1="inet 10.0.10.2 netmask 255.255.255.248"
gateway_enable="YES"
## pf_enable="YES"
## pf_rules="/etc/pf.conf"
## pf_flags=""
## pflog_enable="YES"
## pflog_logfile="/var/log/pflog"
## pflog_flags=""
natd_enable="YES"
natd_interface="re0"
natd_flags="-dynamic"
........................
........................ /etc/hosts
........................
Code:
::1 localhost localhost.my.domain
127.0.0.1 localhost Computer-0.jj.my.com
........................
........................ /etc/host.conf
........................
Code:
# Auto-generated from nsswitch.conf
hosts
dns
........................
........................ /etc/resolv.conf
........................
Code:
search gateway.2wire.net
nameserver 192.168.1.254
........................
........................ /var/db/dhclient.leases.re0
........................
Code:
lease {
interface "re0";
fixed-address 192.168.1.35;
option subnet-mask 255.255.255.0;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.254;
option domain-name "gateway.2wire.net";
option dhcp-lease-time 86400;
option dhcp-message-type 5;
option dhcp-server-identifier 192.168.1.254;
option dhcp-renewal-time 43200;
option dhcp-rebinding-time 75600;
renew 1 2010/6/28 03:54:24;
rebind 1 2010/6/28 12:54:24;
expire 1 2010/6/28 15:54:24;
}
lease {
interface "re0";
fixed-address 192.168.1.35;
option subnet-mask 255.255.255.0;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.254;
option domain-name "gateway.2wire.net";
option dhcp-lease-time 86400;
option dhcp-message-type 5;
option dhcp-server-identifier 192.168.1.254;
option dhcp-renewal-time 43200;
option dhcp-rebinding-time 75600;
renew 1 2010/6/28 04:22:52;
rebind 1 2010/6/28 13:22:52;
expire 1 2010/6/28 16:22:52;
}
........................ Here is what's in my re-build kernel
........................ so I guest pf is running
........................
Code:
device pf
device pflog
device pfsync
options ALTQ
options ALTQ_CBQ # Class Bases Queuing (CBQ)
options ALTQ_RED # Random Early Detection (RED)
options ALTQ_RIO # RED In/Out
options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC)
options ALTQ_PRIQ # Priority Queuing (PRIQ)
options ALTQ_NOPCC # Required for SMP build
........................ Here is the ifconfig information
........................ Both ethernet cards are active.
........................ but pf is commented-out in the rc.conf
........................ commented-out or not, still can't ping by name
Code:
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST
,WOL_MCAST,WOL_MAGIC>
ether 00:14:d1:1a:22:35
inet 192.168.1.35 netmask 0xffffff00 broadcast 192.168.1.255
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST
,WOL_MCAST,WOL_MAGIC>
ether 00:14:d1:1b:19:62
inet 10.0.10.2 netmask 0xfffffff8 broadcast 10.0.10.7
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
pflog0: flags=0<> metric 0 mtu 33200
pfsync0: flags=0<> metric 0 mtu 1460
syncpeer: 224.0.0.240 maxupd: 128
.....................
.....................
.....................
.....................
........................ From Windows LAN machine I can ping Gateway
........................ but I cannot surf the INTERNET with any
........................ web-browser I tried to use.
Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\WINDOWS\system32>ping 10.0.10.2
Pinging 10.0.10.2 with 32 bytes of data:
Reply from 10.0.10.2: bytes=32 time=7ms TTL=64
Reply from 10.0.10.2: bytes=32 time=2ms TTL=64
Reply from 10.0.10.2: bytes=32 time=2ms TTL=64
Reply from 10.0.10.2: bytes=32 time=2ms TTL=64
Ping statistics for 10.0.10.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 2ms, Maximum = 7ms, Average = 3ms
C:\WINDOWS\system32>
WINDOWS TCP/IP PROPERTIES
Code:
IP address: 10.0.10.3
Subnet mask: 255.255.255.248
Default gateway: 10.0.10.2
Computer Name: Computer-1
When I click IE-7 on the LAN machine to go to www.google it fail.
So I set the Sygate firewall on the Windows machine to Allow-All
and it still fail. This is what I get from Sygate. Lucky I
have it insstalled or I would see no info.
Code:
126310 10.0.10.7 137 10.0.10.3 137 Outgoing allowed ntoskrnl.exe
126311 10.0.10.3 137 10.0.10.7 137 Incoming Allowed ndisuio.sys
126312 10.0.10.3 137 10.0.10.7 137 Incoming Allowed
126313 10.0.10.7 137 10.0.10.3 137 Outgoing Allowed ntoskrnl.exe
126314 10.0.10.3 137 10.0.10.7 137 Incoming Allowed ndisuio.sys
126315 10.0.10.3 137 10.0.10.7 137 Incoming Allowed
126316 10.0.10.7 137 10.0.10.3 137 Outgoing Allowed ntoskrnl.exe
126317 10.0.10.3 137 10.0.10.7 137 Incoming Allowed ndisuio.sys
126318 10.0.10.3 137 10.0.10.7 137 Incoming Allowed
Here is the ipconfig information from the Windows LAN machine.
Code:
C:\WINDOWS\system32>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 10.0.10.3
Subnet Mask . . . . . . . . . . . : 255.255.255.248
Default Gateway . . . . . . . . . : 10.0.10.2
C:\WINDOWS\system32>
Here is the netstat -an information from the Windows LAN machine.
Code:
C:\WINDOWS\system32>netstat -an
Active Connections
Proto Local Address Foreign Address State
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
TCP 10.0.10.3:139 0.0.0.0:0 LISTENING
TCP 127.0.0.1:1026 0.0.0.0:0 LISTENING
UDP 0.0.0.0:445 *:*
UDP 0.0.0.0:500 *:*
UDP 0.0.0.0:1025 *:*
UDP 0.0.0.0:4500 *:*
UDP 10.0.10.3:123 *:*
UDP 10.0.10.3:137 *:*
UDP 10.0.10.3:138 *:*
UDP 10.0.10.3:1900 *:*
UDP 127.0.0.1:123 *:*
UDP 127.0.0.1:1900 *:*
C:\WINDOWS\system32>
... and I bet I miss the main thing needed. If so, let me know.