Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Dec 2010 17:27:48 +0530
From:      Mubeesh ali <mubeeshalivm@gmail.com>
To:        "Justin V." <vic@yeaguy.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: pls help..
Message-ID:  <AANLkTim2unQQ=0PT2GViS5J-rXSxSCwFf_e2ujXXw2yt@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.1012140109250.2166@yeaguy.com>
References:  <alpine.BSF.2.00.1012140109250.2166@yeaguy.com>

next in thread | previous in thread | raw e-mail | index | archive | help
try traceroute  to check how packets are going out. do u have any
proxy hardcoded in browser in bsd ?

On Tue, Dec 14, 2010 at 3:24 PM, Justin V. <vic@yeaguy.com> wrote:
> Hi,
>
> I am having a very difficult time understanding what is going on with thi=
s
> FreeBSD machine..
>
> I was having inet trouble so i put in a new router on my network (home
> network)..
>
> I have a FreeBSD machine on my network:
>
> FreeBSD yeaguy.com 8.1-RELEASE FreeBSD 8.1-RELEASE #3: Thu Nov =A04 20:43=
:41
> PDT 2010 =A0 =A0 vic@yeaguy.com:/usr/obj/usr/src/sys/HBCA =A0i386
>
>
> I have windows machines on my network..
>
>
> One of my windows machines is my laptop and I connect directly to the rou=
ter
> via WIFI without any trouble at all... =A0I can browse any website withou=
t
> complaint.
>
> My FreeBSD system connects to my WIFI router just fine as well.. =A0I am
> seeing troubles browsing the inet with my FreeBSD machine (Xorg and opera=
)
> Pulling up Google.com can take up to 30s..
>
> My Other windows machine is using the FreeBSD as its gateway, I am runnin=
g
> ipnat. This pc suffers from the same issues as the FreeBSD box..
>
> I configured the new router with the same ssid and wepkey.. so minimal
> adjustments would have to be made for other WIFI users in the house..
> Everyone is fine except me...
>
> My server is fine as far as my Website is concerned.. I changed my DNS wi=
th
> my host to point to my new WAN IP.. I can pull my page fine.. I can ssh t=
o
> my server fine from my phone, phones ip is from my Phones netowrk.. this =
is
> not being done via WIFI on my phone..
>
> So my Nat'd WIN PC and my FreeBSD Xorg cannot browse the internet like it
> used to.. 30s to 40s to pull up google is just unacceptable, when I have =
my
> laptop sitting here using the same WIFI router pulling it up in about 3ms=
...
>
> Another odd symptom I am seeing is that when i issue the command 'alpine'=
 to
> check my email, it hangs for a good 30s.... =A0So in my mind, Im thinking=
,
> what changed?? My router and my Public IP.. thats it.. its almost like I
> have my OLD WAN ip hardcoded somewhere causing a conflict.. I cannot find=
 it
> hardcoded anywhere..
>
> Heres an example of what im seeing:
>
> [vic@yeaguy ~]$ ping google.com
> PING google.com (72.14.204.147): 56 data bytes
> 64 bytes from 72.14.204.147: icmp_seq=3D0 ttl=3D52 time=3D85.460 ms
> 64 bytes from 72.14.204.147: icmp_seq=3D1 ttl=3D52 time=3D85.152 ms
> 64 bytes from 72.14.204.147: icmp_seq=3D2 ttl=3D52 time=3D84.048 ms
> 64 bytes from 72.14.204.147: icmp_seq=3D3 ttl=3D52 time=3D82.442 ms
> ^C
> --- google.com ping statistics ---
> 4 packets transmitted, 4 packets received, 0.0% packet loss
> round-trip min/avg/max/stddev =3D 82.442/84.275/85.460/1.182 ms
>
>
> [vic@yeaguy ~]$ telnet google.com 80
> Trying 72.14.204.147...
> Connected to google.com. =A0<it hung here for alot longer than 85ms>
> Escape character is '^]'.
> ^]
> telnet> q
> Connection closed.
> [vic@yeaguy ~]$
>
>
> I am unable to browse to nytimes.com via FreeBSD Opera browser or WIN PC
> that is using the FreeBSD as the gateway, but I can telnet to it on tcp p=
ort
> 80 just fine..
>
> [vic@yeaguy ~]$ telnet nytimes.com 80
> Trying 199.239.136.200...
> Connected to nytimes.com.
> Escape character is '^]'.
> get
> <HTML><HEAD><TITLE>Bad request</TITLE></HEAD>
> <BODY><H1>Bad request</H1>
> Your browser sent a query this server could not understand.
> </BODY></HTML>Connection closed by foreign host.
> [vic@yeaguy ~]$
>
>
> Heres some config files:
>
>
> [vic@yeaguy ~]$ cat /etc/rc.conf
> wlans_rum0=3D"wlan0"
> gateway_enable=3D"YES"
> ifconfig_wlan0=3D"inet 192.168.1.169 netmask 255.255.255.0 ssid vicnet we=
pmode
> on weptxkey 1 wepkey 1:0xF4AE43E9BA description WIFI"
> defaultrouter=3D"192.168.1.1"
> apache22_enable=3D"YES"
> hald_enable=3D"YES"
> dbus_enable=3D"YES"
> samba_enable=3D"YES"
> nmbd_enable=3D"YES"
> smbd_enable=3D"YES"
> winbindd_enable=3D"YES"
> hostname=3D"yeaguy.com"
> ifconfig_em0=3D"inet 10.1.1.1 netmask 255.255.255.0 broadcast 10.1.1.255
> description LAN"
> inetd_enable=3D"YES"
> linux_enable=3D"YES"
> sshd_enable=3D"YES"
> usbd_enable=3D"YES"
> postfix_enable=3D"YES"
> sendmail_enable=3D"NO"
> sendmail_submit_enable=3D"NO"
> sendmail_outbound_enable=3D"NO"
> sendmail_msp_queue_enable=3D"NO"
> firewall_enable=3D"YES"
> firewall_script=3D"/etc/fire"
> ipnat_enable=3D"YES"
> ipnat_program=3D"/sbin/ipnat"
> ipnat_rules=3D"/etc/ipnat.rules"
> ipnat_flags=3D""
> #ipmon_enable=3D"YES"
> #ipmon_program=3D"/sbin/ipmon"
> #ipmon_flags=3D"-Ds"
> named_enable=3D"YES"
> ntpdate_enable=3D"YES"
> ntpdate_program=3D"ntpdate"
> ntpdate_flags=3D"-b 0.north-america.pool.ntp.org"
> mysql_enable=3D"YES"
> clamav_clamd_enable=3D"YES"
> clamav_freshclam_enable=3D"YES"
> amavisd_enable=3D"YES"
> #amavisd_ram=3D"512m"
> pf_enable=3D"YES"
> pf_rules=3D"/etc/pf.conf"
> pflog_enable=3D"YES"
> saver=3D"daemon"
>
>
>
> [vic@yeaguy ~]$ ifconfig
> em0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
> =A0 =A0 =A0 =A0description: LAN
> options=3D219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL=
_MAGIC>
> =A0 =A0 =A0 =A0ether 00:16:76:bf:17:29
> =A0 =A0 =A0 =A0inet 10.1.1.1 netmask 0xffffff00 broadcast 10.1.1.255
> =A0 =A0 =A0 =A0media: Ethernet autoselect (100baseTX <full-duplex>)
> =A0 =A0 =A0 =A0status: active
> ipfw0: flags=3D8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536
> pflog0: flags=3D141<UP,RUNNING,PROMISC> metric 0 mtu 33200
> lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
> =A0 =A0 =A0 =A0options=3D3<RXCSUM,TXCSUM>
> =A0 =A0 =A0 =A0inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
> =A0 =A0 =A0 =A0inet6 ::1 prefixlen 128
> =A0 =A0 =A0 =A0inet 127.0.0.1 netmask 0xff000000
> =A0 =A0 =A0 =A0nd6 options=3D3<PERFORMNUD,ACCEPT_RTADV>
> pfsync0: flags=3D0<> metric 0 mtu 1460
> =A0 =A0 =A0 =A0syncpeer: 224.0.0.240 maxupd: 128
> rum0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2=
290
> =A0 =A0 =A0 =A0ether 00:1e:e5:a8:bd:5a
> =A0 =A0 =A0 =A0media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
> =A0 =A0 =A0 =A0status: associated
> wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu =
1500
> =A0 =A0 =A0 =A0description: WIFI
> =A0 =A0 =A0 =A0ether 00:1e:e5:a8:bd:5a
> =A0 =A0 =A0 =A0inet 192.168.1.169 netmask 0xffffff00 broadcast 192.168.1.=
255
> =A0 =A0 =A0 =A0media: IEEE 802.11 Wireless Ethernet OFDM/18Mbps mode 11g
> =A0 =A0 =A0 =A0status: associated
> =A0 =A0 =A0 =A0ssid vicnet channel 11 (2462 MHz 11g) bssid 00:22:6b:66:bf=
:74
> =A0 =A0 =A0 =A0country US authmode OPEN privacy ON deftxkey 1 wepkey 1:40=
-bit
> =A0 =A0 =A0 =A0txpower 0 bmiss 7 scanvalid 60 bgscan bgscanintvl 300 bgsc=
anidle 250
> =A0 =A0 =A0 =A0roam:rssi 7 roam:rate 5 protmode CTS
> [vic@yeaguy ~]$
>
>
> [vic@yeaguy ~]$ netstat -rn
> Routing tables
>
> Internet:
> Destination =A0 =A0 =A0 =A0Gateway =A0 =A0 =A0 =A0 =A0 =A0Flags =A0 =A0Re=
fs =A0 =A0 =A0Use =A0Netif Expire
> default =A0 =A0 =A0 =A0 =A0 =A0192.168.1.1 =A0 =A0 =A0 =A0UGS =A0 =A0 =A0=
 =A0 1 =A0 =A0 2208 =A0wlan0
> 10.1.1.0/24 =A0 =A0 =A0 =A0link#1 =A0 =A0 =A0 =A0 =A0 =A0 U =A0 =A0 =A0 =
=A0 =A0 4 =A0 =A016001 =A0 =A0em0
> 10.1.1.1 =A0 =A0 =A0 =A0 =A0 link#1 =A0 =A0 =A0 =A0 =A0 =A0 UHS =A0 =A0 =
=A0 =A0 0 =A0 =A0 =A0 =A00 =A0 =A0lo0
> 127.0.0.1 =A0 =A0 =A0 =A0 =A0link#4 =A0 =A0 =A0 =A0 =A0 =A0 UH =A0 =A0 =
=A0 =A0 =A00 =A0 =A0 =A0 36 =A0 =A0lo0
> 192.168.1.0/24 =A0 =A0 link#7 =A0 =A0 =A0 =A0 =A0 =A0 U =A0 =A0 =A0 =A0 =
=A0 6 =A0 =A0 7123 =A0wlan0
> 192.168.1.169 =A0 =A0 =A0link#7 =A0 =A0 =A0 =A0 =A0 =A0 UHS =A0 =A0 =A0 =
=A0 0 =A0 =A0 =A0 =A00 =A0 =A0lo0
>
> Internet6:
> Destination =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Gateway =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Flags Netif
> Expire
> ::1 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ::1 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 UH lo0
> fe80::%lo0/64 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 link#4 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0U lo0
> fe80::1%lo0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 link#4 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0UHS lo0
> ff01:4::/32 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 fe80::1%lo0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 U lo0
> ff02::%lo0/32 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 fe80::1%lo0 =A0 =A0=
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 U lo0
> [vic@yeaguy ~]$
>
>
>
> yeaguy# ipnat -l
> List of active MAP/Redirect filters:
> map wlan0 10.1.1.0/24 -> 192.168.1.169/32 portmap tcp/udp 10000:60000
> map wlan0 10.1.1.0/24 -> 192.168.1.169/32
>
> List of active sessions:
> MAP 10.1.1.190 =A0 =A0 =A053867 <- -> 192.168.1.169 =A0 54939 [69.147.83.=
34 80]
> MAP 10.1.1.190 =A0 =A0 =A053401 <- -> 192.168.1.169 =A0 45879 [72.14.204.=
147 80]
> MAP 10.1.1.190 =A0 =A0 =A053398 <- -> 192.168.1.169 =A0 18541 [72.14.204.=
147 80]
> MAP 10.1.1.190 =A0 =A0 =A053397 <- -> 192.168.1.169 =A0 27460 [72.14.204.=
147 80]
> yeaguy#
>
>
>
> I am thinking of doing a fresh install to see if my issue clears.. =A0I a=
m
> beyond frustrated.. A WAN IP and router change and now I have some odd
> tick/hangup on the system???!!! =A0that makes no sense.. if i put the old
> router in place it works fine.. I really dont want to use the old router
> either,, it requires a reboot daily.. it flakey...
>
> I checked the router for ACLs and anything that might cause conflict but =
I
> am not seeing anything.. =A0I really cant see how its the new router.. my=
 WIN
> LAPTOP when connecting to the router works flawlessly... =A0The only odd =
thing
> I do see in regards to the router and FreeBSD box is the WEP attributes:
>
> ifconfig shows:
>
> wepkey 1:40-bit // Router shows: WEP Encryption: "64 bits 10 hex digits".=
.
> is that an issue??
>
> Router is a Linksys WRT54G2... =A0 My router logs show in and out traffic=
 from
> the FreeBSD box.. so this is why Im thinking its the FreeBSD box...
>
> Can i do a system wide grep on all files to see if i find the OLD WAN IP
> hardcoded somewhere???
>
> I have completely disable ipfw as well:
>
> yeaguy# ipfw -q flush
> yeaguy# ipfw show
> 65535 4145 3401628 allow ip from any to any
>
> If anyone can assist Id be very greatful..
>
> Thanks
>
> Justin V.
>
>
>
>
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o=
rg"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTim2unQQ=0PT2GViS5J-rXSxSCwFf_e2ujXXw2yt>