From owner-freebsd-questions@FreeBSD.ORG Tue Dec 14 11:57:51 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 013C1106566C for ; Tue, 14 Dec 2010 11:57:51 +0000 (UTC) (envelope-from mubeeshalivm@gmail.com) Received: from mail-bw0-f49.google.com (mail-bw0-f49.google.com [209.85.214.49]) by mx1.freebsd.org (Postfix) with ESMTP id 751FF8FC0A for ; Tue, 14 Dec 2010 11:57:50 +0000 (UTC) Received: by bwz5 with SMTP id 5so716650bwz.8 for ; Tue, 14 Dec 2010 03:57:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=N1RoTMhjwW9uSGM1vX+SoUgswIGdCMyV1z11zJZaq8o=; b=ol2rA/KbcZ4at80eBoBnLropUJYwAWfyEdqCSejO25S30f+eQ/xMmv74R+pAQbMCil Y5UzgzBk3wGtInnCoBDowUnjD/YGm4lnNDJ7av1IT6ohSutdPCRpV8nvNuSo603tMol7 zaO3pYRMZQSxJePVpVDT+m3ENI7BObaeBuOtw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=shNxI9ai9PnBF8D5UnsTuim+ShaW7LbGiwHn3+NI3/VAk+tDJuoSSP+VQgybagjSYN HP7LxFdf8TENwUT7rsAQYl7TEJLcGrFuNoKQ+fRexruHf5jLF/NmKXRh49ORTK4outOh 748GDhjSDUEOXur4v9WmX6Gx4l1YbXom17Ta8= MIME-Version: 1.0 Received: by 10.204.65.135 with SMTP id j7mr5040346bki.85.1292327868397; Tue, 14 Dec 2010 03:57:48 -0800 (PST) Received: by 10.204.101.197 with HTTP; Tue, 14 Dec 2010 03:57:48 -0800 (PST) In-Reply-To: References: Date: Tue, 14 Dec 2010 17:27:48 +0530 Message-ID: From: Mubeesh ali To: "Justin V." Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: pls help.. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2010 11:57:51 -0000 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. 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 > 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 > Bad request >

Bad request

> Your browser sent a query this server could not understand. > 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 metric 0 mtu 15= 00 > =A0 =A0 =A0 =A0description: LAN > options=3D219b > =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 ) > =A0 =A0 =A0 =A0status: active > ipfw0: flags=3D8801 metric 0 mtu 65536 > pflog0: flags=3D141 metric 0 mtu 33200 > lo0: flags=3D8049 metric 0 mtu 16384 > =A0 =A0 =A0 =A0options=3D3 > =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 > pfsync0: flags=3D0<> metric 0 mtu 1460 > =A0 =A0 =A0 =A0syncpeer: 224.0.0.240 maxupd: 128 > rum0: flags=3D8843 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 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" >