Weird freebsd gateway question

2007-06-12 Thread Pang

Hello,
 I have followed the document below to set up a gateway for 2 vlans:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-routing.html
 All servers behind the switch can connect to the Internet without any 
problems. However, I cannot ping the switch IP from the outside nor 
inside of the network. I have tried to change the IP of the switch, but 
still the switch cannot be visible in the network (all servers behind 
works without any glitch.) Could anyone point me out the error?


 Below is the network diagram:
 Internet - FreeBSD gateway  Switch  Few 
servers


For FreeBSD gateway, I have that few lines in /etc/rc.d:
defaultrouter="10.0.0.1"
gateway_enable="YES"
ifconfig_em0="inet 10.0.0.2  netmask 255.255.255.252"
ifconfig_em1="inet 172.16.0.1  netmask 255.255.255.224"
static_routes="lan"
route_lan="-net 172.16.0.1/24 172.16.0.2"

*The IP of the switch is 172.16.0.2
**All actual IPs are changed to dummy IPs.

Thanks
Pang
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Switching between half-duplex and full duplex

2007-06-04 Thread Pang

Rudolf Cejka wrote:

Pang wrote (2007/06/03):
  
 I have just installed FreeBSD and found that the nic em0 is set to 
half-duplex only. Could anyone tell me how I can switch it to full-duplex?

em0: flags=8843 mtu 1500
   options=b
   inet 172.16.0.2 netmask 0xfffc broadcast 172.16.0.1
   ether XX:XX:XX:XX:XX:XX
   media: Ethernet autoselect (10baseT/UTP )
   status: active



Hello, so I was right? ;o) I assume, that you have more capable device
on the other side, atleast 100 Mb/s full-duplex. In that case, you should
check, what connection type is "seen" on the other side (switches with
management!). Then you can check auto-negotiation settings on the other
side, try to change ethernet cable - it would be faulty and auto-neg would
not work correctly, then look, which chipset do you have - the driver would
not work with too new chips, I have here some ICH8 machines, which do work
just 100 Mb/s instead of 1 Gb/s (I expect that -current should work now).

Regards.

PS: Another very good command is ifconfig -m em0, where you can see all
allowed media/mediaopt combinations.

  


Hello,
 The auto-negotiation doesn't work properly. (it goes to half-duplex 
automatically). But, it works when I switched it back full-duplex manually.

 However, the switch doesn't seem to support 100baseTX or better.
Thanks
Pang
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Switching between half-duplex and full duplex

2007-06-03 Thread Pang

Hello,
 I have just installed FreeBSD and found that the nic em0 is set to 
half-duplex only. Could anyone tell me how I can switch it to full-duplex?


em0: flags=8843 mtu 1500
   options=b
   inet 172.16.0.2 netmask 0xfffc broadcast 172.16.0.1
   ether XX:XX:XX:XX:XX:XX
   media: Ethernet autoselect (10baseT/UTP )
   status: active

Thanks
Pang
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Download speed and TCPIP window sizing

2007-05-31 Thread Pang

Thanks for reply.

Nicolas Gieczewski wrote:

On Thu, 31 May 2007 22:06:39 +0800, Pang <[EMAIL PROTECTED]> wrote:
  

  Recently, I have leased a rack in Asianetcom and some bandwidth.
However, the speed for my curcuit is substantially slower than my
provider's company site.
[...]
*This server is using FreeBSD 6.2 patch 4 with Apache in the port tree.
The kernel is custom built but I haven't made any modification in sysctl

  I have asked many techs in Asianetcom and they blamed on TCPIP window
sizing.



I used to have the same problem with my FreeBSD dedicated servers in the U.S. 
when I was living in South America with a latency of ~200 ms. Given identical 
hardware and connectivity, I could max out my download speed when downloading 
from a server running Linux, but would get no more than 100-150 KB/s when 
downloading from an otherwise identical FreeBSD box.

The solution was to increase the size of the TCP send window on the FreeBSD 
server to about 128 KB--the default of 32 KB turned out to be way too small.

# sysctl net.inet.tcp.sendspace=131072

After modifying this value, you need to restart any processes (e.g. Apache) 
that you want to take advantage of the change.
  


It doesn't work. I am still getting ~10KB/s speed.



Hope it helps.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
  


Thanks
Pang
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Download speed and TCPIP window sizing

2007-05-31 Thread Pang

Hello,
 Recently, I have leased a rack in Asianetcom and some bandwidth. 
However, the speed for my curcuit is substantially slower than my 
provider's company site. The provider said my circuit and their one are 
treated exactly the same way.

 Below is the URL for the download:
My circuit*: http://203.192.137.194/test.rar
ANC curcuit: 
http://www.asianetcom.com/pub/communications/AsiaNetcomNews_2006Q2.pdf
*This server is using FreeBSD 6.2 patch 4 with Apache in the port tree. 
The kernel is custom built but I haven't made any modification in sysctl


 I have asked many techs in Asianetcom and they blamed on TCPIP window 
sizing. I am not sure what it is, so I do a search in Google and find 
the following:

http://www.vad1.com/tcp-throughput-limit.html

 After reading the article above, I feel the situation is very similar. 
But, from my understanding, the download speed should be proportional to 
the ping speed. However, test done on Canada is much higher (about 3 
times higher) than in US while the ping is very similar.


 Could anyone tell me whether my understanding on Window sizing 
correct? Also, is there any way to alter the window sizing in freebsd or 
apache?


Thanks
Pang
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Flash in freebsd

2006-12-27 Thread Janvier Pang

My note, it works well on my freebsd 6.1 & firefox 1.5, 2.0.

please remember to add the following line into /etc/rc.conf:

linux_enable="YES"

FreeBSD FireFox Flash Plugin Installation Guide:

a) install www/linuxpluginwrapper

b) install www/linux-flashplugin7

c) cp /usr/local/share/examples/linuxpluginwrapper/libmap.conf-FreeBSD6
/etc/libmap.conf

d) ln -s /usr/local/lib/npapi/linux-flashplugin/*
/usr/local/lib/firefox/plugins

e) use sysinstall to install the source of system programs
(/usr/src/libexec)

f) Execute:

# cd /usr/src
# fetch 
http://people.FreeBSD.org/~nork/rtld_dlsym_hack.diff<http://people.freebsd.org/%7Enork/rtld_dlsym_hack.diff>
# patch < rtld_dlsym_hack.diff
# cd libexec/rtld-elf/
# make clean
# make obj
# make depend
# make && make install

g) restart firefox.

B.Regs,

Janvier Pang.

-
International Domain Name for sale.
http://www.中央电视台.tv/<http://www.%e4%b8%ad%e5%a4%ae%e7%94%b5%e8%a7%86%e5%8f%b0.tv/>(China
Central Television, CCTV in China)
http://www.湖南卫视.tv/
<http://www.%e6%b9%96%e5%8d%97%e5%8d%ab%e8%a7%86.tv/>(Hunan Satellite
TV,
*Super Voice Girls* (超��女��) contest presented by)

On 12/27/06, RW <[EMAIL PROTECTED]> wrote:


On Tue, 26 Dec 2006 15:29:18 -0500
Dan Sikorsky <[EMAIL PROTECTED]> wrote:

> How?
>
> I've heard stories of linux-opera and linux-flashplayer7  didnt
> work for me
>
> do I have to mess with plug in files ?

Just install the www/linux-flashplugin7 port
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "
[EMAIL PROTECTED]"

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Could anybody tell me how to drive ATI Radeon X1300?

2006-12-22 Thread Janvier Pang

Dear everyone,

A laptop (Acer Aspire 5100), and there's ATI Radeon X1300 on it.

I've chose ati (general and radeon) driver in my xorg.conf, the X is fail to
start:

(EE) No devuces detected.

could anybody tell me how to drive it?

p.s. I searched the googel, and i found something named "fglrx" may works,
but i can not find it in the driver list. any idea?

Thanks.

Janvier Pang
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Can not power-off or reboot on Acer Aspire 5100 laptop.

2006-12-21 Thread Janvier Pang

Hi everyone,

I have a new Acer Aspire 5100 laptop and a FreeBSD 6.2-RC1 installed. When I
shutdown the machine by "shutdown -p now" command, the machine will hang
after printing the "All Buffers Synced. Uptime: xx:xx" messages.

If I use the "reboot" command to reboot the machine, i got the same result
as the shutdown one.

I've tried to add the following lines into /etc/rc.conf, but it didn't work.

apm_enable="YES"
apmd_enable="YES"

I've tried to use some alternative command instead of "shutdown", but they
didn't work too:

acpiconf -s 5
init 0

I've tried to disable the ACPI function on start up, the system will crash
and reboot.

Could anybody kindly help or give some hints to solve this shutting down
problem?

Thanks.

dmesg informations:

Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
   The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.2-RC1 #0: Thu Nov 16 05:01:36 UTC 2006
   [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
ACPI APIC Table: 
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Turion(tm) 64 Mobile Technology MK-36 (1995.02-MHz 686-class CPU)
 Origin = "AuthenticAMD"  Id = 0x40fc2  Stepping = 2
 
Features=0x78bfbff
 Features2=0x2001
 AMD Features=0xea500800
 AMD Features2=0x1d,,CR8>
real memory  = 535363584 (510 MB)
avail memory = 514461696 (490 MB)
MADT: Forcing active-low polarity and level trigger for SCI
ioapic0  irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.17.2 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0:  on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0
acpi_ec0:  port 0x62,0x66 on acpi0
cpu0:  on acpi0
acpi_lid0:  on acpi0
acpi_button0:  on acpi0
acpi_button1:  on acpi0
pcib0:  port 0xcf8-0xcff on acpi0
pci0:  on pcib0
pcib1:  at device 2.0 on pci0
pci1:  on pcib1
pci1:  at device 0.0 (no driver attached)
pcib2:  at device 4.0 on pci0
pci2:  on pcib2
pcib3:  at device 5.0 on pci0
pci4:  on pcib3
atapci0:  port
0x8440-0x8447,0x8434-0x8437,0x8438-0x843f,0x8430-0x8433,0x8400-0x840f mem
0xc0004000-0xc00041ff irq 22 at device 18.0 on pci0
ata2:  on atapci0
ata3:  on atapci0
ohci0:  mem 0xc0005000-0xc0005fff irq 19 at device
19.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0, legacy support
usb0:  on ohci0
usb0: USB revision 1.0
uhub0: ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
ohci1:  mem 0xc0006000-0xc0006fff irq 19 at device
19.1 on pci0
ohci1: [GIANT-LOCKED]
usb1: OHCI version 1.0, legacy support
usb1:  on ohci1
usb1: USB revision 1.0
uhub1: ATI OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 4 ports with 4 removable, self powered
ehci0:  mem 0xc0007000-0xc0007fff irq 19 at
device 19.2 on pci0
ehci0: [GIANT-LOCKED]
usb2: EHCI version 1.0
usb2: companion controllers, 4 ports each: usb0 usb1
usb2:  on ehci0
usb2: USB revision 2.0
uhub2: ATI EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 8 ports with 8 removable, self powered
pci0:  at device 20.0 (no driver attached)
atapci1:  port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x8420-0x842f at device 20.1 on pci0
ata0:  on atapci1
ata1:  on atapci1
pci0:  at device 20.2 (no driver attached)
isab0:  at device 20.3 on pci0
isa0:  on isab0
pcib4:  at device 20.4 on pci0
pci6:  on pcib4
rl0:  port 0xa000-0xa0ff mem
0xc021-0xc02100ff irq 21 at device 1.0 on pci6
miibus0:  on rl0
rlphy0:  on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:16:d4:64:fb:64
ath0:  mem 0xc020-0xc020 irq 22 at device 2.0 on pci6
ath0: Ethernet address: 00:16:cf:9c:38:59
ath0: mac 7.8 phy 4.5 radio 5.6
cbb0:  mem 0xc0211000-0xc0211fff irq 20 at device 4.0 on
pci6
cardbus0:  on cbb0
pccard0: <16-bit PCCard bus> on cbb0
pci6:  at device 4.1 (no driver attached)
pci6:  at device 4.2 (no driver attached)
pci6:  at device 4.3 (no driver attached)
pci6:  at device 4.4 (no driver attached)
acpi_tz0:  on acpi0
atkbdc0:  port 0x60,0x64 irq 1 on acpi0
atkbd0:  irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0:  irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
battery0:  on acpi0
acpi_acad0:  on acpi0
pmtimer0 on isa0
ppc0: parallel port not found.
sc0:  at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
Timecounter "TSC" frequency 1995015403 Hz quality 800
Timecounters tick every 1.000 msec
acd0: DVDR  at ata0-master UDMA33
ad4: 114473MB  at ata2-master SATA150
Trying

libtool: link: `/hsphere/shared/lib/libiconv.la' is not a valid libtool archive

2005-10-27 Thread Pang

Hello Everyone,
 I have tried to compile PHP4.4.0 and got the following error:

grep: /hsphere/shared/lib/libiconv.la: No such file or directory
sed: /hsphere/shared/lib/libiconv.la: No such file or directory
libtool: link: `/hsphere/shared/lib/libiconv.la' is not a valid libtool 
archive


 I have tried to reinstall libtool and libiconv, but the problem is not 
fixed. Could you tell me which port install libiconv.la?


 My FreeBSD version is 5.4

Thanks
Pang
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How to find the cause of core dump

2005-08-26 Thread Pang

Hello all,
 I have got a lot of signal 11 on dmesg
pid 62519 (httpd), uid 398: exited on signal 11

 I am sure it is software problem, since I just moved all the things to 
a new servers and I still got these errors. So, I need to find the cause 
of the problem, but I don't know where to start.


 Could any one tell me what I should do first?

Thanks
Pang
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Spam Problems

2005-05-15 Thread Kevin Pang
Hello All,

I'm a newbie and manage a FreeBSD server, which only hosts my own websites,
also only me have shell accounts on this server. Someone sent out lots of
spams from my server today. I have stopped postfix and disabled mail command
to make sure no any emails will be sent to from this server.

I want to know how the spammer did that. Actually I didn't manage postfix to
work well, I even can't send emails from my desktop myself, on the server
side, sending/receiving emails works well. I guess the spams were sent via a
web script. The sender was specified as "[EMAIL PROTECTED]" according to the
complaint email. I use phpBB, vBulletin and Awstats.

The spam email entry in the maillog is:
May 14 14:55:03 pang postfix/smtp[46011]: EC0C595C90: to=<[EMAIL PROTECTED]>,
relay=mail2.iecc.com[208.31.42.98], delay=724, status=sent (250 ok
1116100192 qp 2255)


As a newbie, I have no idea where to start to fix the problem. My first
question: Is it possible to know which script sent out these spams? I don't
know what else to ask at the moment. I will appreciate it very much too if
you any other suggestions about my problems. Thanks!

Kevin


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


About Apache

2005-04-13 Thread Kevin Pang
I installed Awstat, the log report url is something like
http://www.mydomain.com/awstats/awstats.pl, I added password protection for
the directory /awstats, everything works fine. But I found someone accessed
the url http://www.mydomain.com/cgi-bin/awstats.pl, it's supposed to be a
404 error, but it is redirected to
http://www.mydomain.com/awstats/awstats.pl . My question is why the url
http://www.mydomain.com/cgi-bin/awstats.pl is working, any other options to
make it work besides rewrite, alias and link. Thanks!

Here is all related lines in httpd.conf:
---
ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/"

ScriptAlias /awstats/ "/usr/local/etc/awstats/wwwroot/cgi-bin/"

Options None
AllowOverride authconfig
Order allow,deny
Allow from All

---
Output of "ll /usr/local/www/cgi-bin/",  nothing is related to /awstats/
-rw-r--r--  1 root  wheel0 Nov  3 17:24
EXAMPLE_DIRECTORY-DONT_ADD_OR_TOUCH_ANYTHING
-rw-r--r--  1 root  wheel  274 Nov  3 17:24 printenv
-rw-r--r--  1 root  wheel  757 Nov  3 17:24 test-cgi


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"