Re: apache2x can't autostart under freebsd 6.2
Than you for your advice very much, I will try later. On 3/30/07, Eric Crist <[EMAIL PROTECTED]> wrote: On Mar 30, 2007, at 4:24 AM, he ccjj wrote: > I setup apache20 or apache22 on freebsd6.2, and eidted /etc/rc.conf, > then I can use "/usr/local/etc/rc.d/apache2.sh start" or > "/usr/local/etc/rc.d/apache22 start" to start, but after reboot, I > have to restart it manully. This must be a BUG for Freebsd 6.2, how to > resolve it? It's not a bug in FreeBSD 6.2, I've got 4 servers on 6.2 running apache 2.2 and they all restart Apache just fine upon boot. My first recommendation would be to check /var/log/messages immediately after boot and see what it says in there. If there's nothing there, look in /var/log/httpd-error.log and see if anything stands out. - Eric F Crist Secure Computing Networks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
freebsd + squid + pf problem
I use freebsd + squid + pf to setup a transprarent proxy box. my /etc/pf.conf: ext_if="{fxp0}" int_if="{em0}" int_net="{192.168.100.254/16}" icmp_types="echoreq" set block-policy return set optimization aggressive set skip on lo0 scrub in nat on $ext_if from $int_net to any -> $ext_if rdr pass on $int_if inet proto tcp from $int_net to any port http -> 127.0.0.1 port 8080 antispoof quick for $ext_if inet pass in on $ext_if keep state pass out on $ext_if keep state pass in on $int_if keep state pass out on $int_if keep state main parts of my /usr/local/etc/squid/squid.conf: http_port localhost:8080 transparent visible_hostname proxy acl all src 0.0.0.0/0.0.0.0 .. http_access allow all http_reply_access allow all icp_access allow all miss_access allow all always_direct allow all now I restart pf and squid, I can visit web site from clients.But I can't use some p2p program, like pplive(http://www.pplive.com/en/index.html). Why? my squid version is 2.6, I tested under freebsd 6.1 and 6.2 (all after portsnap fetch update and portupgrade -arR). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
apache2x can't autostart under freebsd 6.2
I setup apache20 or apache22 on freebsd6.2, and eidted /etc/rc.conf, then I can use "/usr/local/etc/rc.d/apache2.sh start" or "/usr/local/etc/rc.d/apache22 start" to start, but after reboot, I have to restart it manully. This must be a BUG for Freebsd 6.2, how to resolve it? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: CUPS not working on FreeBSD 6.2-BETA
I find the solution, Roland gives me the answere: http://www.xs4all.nl/~rsmith/freebsd/#parport #chown root:cups /dev/lpt0 !!FreeBSD is so sctrict! -- Forwarded message -- From: Axel Burwitz <[EMAIL PROTECTED]> Date: Dec 23, 2006 6:17 PM Subject: Re: CUPS not working on FreeBSD 6.2-BETA To: he ccjj <[EMAIL PROTECTED]> he ccjj wrote: On 12/23/06, Axel Burwitz <[EMAIL PROTECTED]> wrote: in FreeBSD 6.2 - RC1 it works fine here. Sure cupsd is running? Can you administrate CUPS server with http://localhost:631 ? Yes,I can connect through http://localhost:631, but when I add printer, I can not find the device of my HP 5100 printer, I have installed foomatic-db-hpijs and hpijs. True, standard CUPS install covers only small part of all possible printers in the world. You will have to experiment with printer drivers. For me, I had to take a PPD printer driver file from Linux for my Brother HL-5130 Laser printer... -- *** Axel Burwitz An der Heilquelle 20a D-63773 Goldbach Tel +49 (0) 6021 570717 Mobile +49 (0) 151 15123177 ICQ 339978580 Web www.axelburwitz.eu *** Thunderbird 1.5.0.7FreeBSD 6.2 RC1 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Fwd: CUPS not working on FreeBSD 6.2-BETA
On 12/23/06, Axel Burwitz <[EMAIL PROTECTED]> wrote: in FreeBSD 6.2 - RC1 it works fine here. Sure cupsd is running? Can you administrate CUPS server with http://localhost:631 ? Yes,I can connect through http://localhost:631, but when I add printer, I can not find the device of my HP 5100 printer, I have installed foomatic-db-hpijs and hpijs. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: CUPS not working on FreeBSD 6.2-BETA
I meet this problem too! My KDE can't connect CUPS. And CUPS can't detect out my HP 5100 printer. On 11/29/06, Tino Engel <[EMAIL PROTECTED]> wrote: Dear FreeBSD people, Despite having started various attempts, I cannot print within KDE 3.5.4 on FreeBSD 6.2-BETA. I always receive error message as follows: An error occurred while retrieving the printer list: Connection to CUPS server failed. Check that the CUPS server is correctly installed and running. Error: localhost: read failed (14). Printer files are installed. Can someone please help? Best regards, Tino Engel http://no-peanuts.de ___ 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]"
pureftpd can't work normally on pureftp--NATD--ipfw--FreeBSD 5.4
I use freebsd 5.4(with OPTION IPFW on and IPFIREWALL_DEFAULT_TO_ACCEPT on)+apache+pureftp+natd to setup a server used for ftp/web server and as a getway for share network too. My network like this: --(oip:x.x.x.a)-- | | (oif:em0)-->| |-->(internet getway:x.x.x.254) ^| | | ---(oip alias0:x.x.x.b)-- | | (iif:em1,iip:192.168.100.254)<---(inet 192.168.100.254/16)<---(intranet) I bind oip:x.x.x.a as httpd and pureftpd serverip,and use em0_aliase0(x.x.x.b) as natd's interface. And use of rc.firewall rule: 'open . So my intranet can share internet normaly through natd on x.x.x.b,and http server work normaly too.And the users of intranet(192.168.100.254/16) can visit pureftpd correctly. My problem is:the users of internet can't visited my pureftpd on x.x.x.a correctly,The debug information like below.From the erro,it's like that ipfw rule was wrong.If I cancel em0_alias0(x.x.x.b),and set natd_interface to (x.x.x.a),it work very well! Is there some one meet this problem before?Give me help please! = *** CuteFTP Pro 6.0 - build Mar 25 2004 *** STATUS:>Getting listing ""... STATUS:>Resolving host name x.x.x.a... STATUS:>Host name x.x.x.a resolved: ip = x.x.x.a. STATUS:>Connecting to FTP server x.x.x.a:21 (ip = x.x.x.a)... STATUS:>Socket connected. Waiting for welcome message... 220-- Welcome to Pure-FTPd [privsep] [TLS] -- 220-Local time is now 23:07. Server port: 21. 220 You will be disconnected after 15 minutes of inactivity. STATUS:>Connected. Authenticating... COMMAND:> USER tmp 331 User tmp OK. Password required COMMAND:> PASS * 230-User tmp has group access to: www 230 OK. Current restricted directory is / STATUS:>Login successful. COMMAND:> PWD 257 "/" is your current location STATUS:>Home directory: / COMMAND:> FEAT 211-Extensions supported: EPRT IDLE MDTM SIZE REST STREAM MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*; MLSD ESTP PASV EPSV SPSV 211 End. STATUS:>This site supports features. STATUS:>This site supports SIZE. STATUS:>This site can resume broken downloads. COMMAND:> REST 0 350 Restarting at 0 COMMAND:> PASV 227 Entering Passive Mode (x,x,x,a,158,251) STATUS:>Connecting FTP data socket x.x.x.a:40699... ERROR:> The connection failed due to an error or timeout. 1) Verify that the destination IP address is correct. .. 12) Verify that your anti-virus software is not at fault (try disabling it). ERROR:> PASV failed, trying PORT. STATUS:>Waiting 0 seconds... STATUS:>Getting listing "/"... STATUS:>Resolving host name x.x.x.a... STATUS:>Host name x.x.x.a resolved: ip = x.x.x.a. STATUS:>Connecting to FTP server x.x.x.a:21 (ip = x.x.x.a)... STATUS:>Socket connected. Waiting for welcome message... 220-- Welcome to Pure-FTPd [privsep] [TLS] -- 220-Local time is now 23:08. Server port: 21. 220 You will be disconnected after 15 minutes of inactivity. STATUS:>Connected. Authenticating... COMMAND:> USER tmp 331 User tmp OK. Password required COMMAND:> PASS * 230-User tmp has group access to: www 230 OK. Current restricted directory is / STATUS:>Login successful. COMMAND:> PWD 257 "/" is your current location STATUS:>Home directory: / STATUS:>This site supports features. STATUS:>This site supports SIZE. STATUS:>This site can resume broken downloads. COMMAND:> REST 0 350 Restarting at 0 COMMAND:> PORT 192,168,123,104,6,18 200 PORT command successful COMMAND:> LIST ERROR:> Timeout (6 ms) occurred on receiving server response. = content of /etc/rc.conf: == hostname="x.x.x.a" ifconfig_em0="inet x.x.x.a netmask 255.255.255.0" ifconfig_em0_alias0="inet x.x.x.b netmask 255.255.255.0" ifconfig_em1="inet 192.168.100.254 netmask 255.255.255.0" defaultrouter="x.x.x.254" static_routes="inside" route_inside="-net 192.168.100.254/16 192.168.100.1" #proxy: gateway_enable="YES" firewall_enable="YES" firewall_type="simple" natd_enable="YES" natd_i
Fwd: How to limit the nat's stream speed?
Good,I use your method to solute the problem,i do like this: add dummynet_enabe="YES" to /boot/loader.conf then add these lines to /etc/rc.firewall: ${fwcmd} add pipe 1 ip from ${inet} to any out limit src-addr 400 ${fwcmd} add pipe 2 ip from any to ${inet} in limit src-addr 400 ${fwcmd} pipe 1 config delay 2ms bw 10Mbit/s ${fwcmd} pipe 2 config delay 2ms bw 10Mbit/s yeah! But the speed was limited to about 350KB/s when i download enven in LAN! I changed scr-add and delay and bw,it's like that have no effect except deleting delay 2ms(about 800KB/s without delay). The users of LAN will hate me from now! :< 2005/8/10, Adi Pircalabu <[EMAIL PROTECTED]>: > On Wed, 10 Aug 2005 13:31:28 +0800 > he ccjj <[EMAIL PROTECTED]> wrote: > > > I use freebsd5.4+ipfw+natd to setup a box for sharing internet,it's > > work fine.But i have a very serious problem: > > Some computer of my inner user was attacked by virus,they make very > > big volume of stream to internet,so the natd will occupy almost all > > the cpu,the others can't visit internet at all !! Is there a solution > > to limit the natd's cpu occupancy or limit every user's stream speed? > > You may take a look at ipfw(8) manpage and search for dummynet > configuration. > For example, if you know the offending IP, you can try something like > this: > > kldload dummynet > ipfw pipe ${pipe-num} config bw ${max-bw} > ipfw add ${rule-num} pipe ${pipe-num} ip from ${offending-IP} to any > > It's a very simple example, take it as a starting point. > Bye > > -- > Adi Pircalabu (PGP Key ID 0x04329F5E) > > > -- > This message was scanned for spam and viruses by BitDefender. > For more information please visit http://www.bitdefender.com/ > > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
How to limit the nat's stream speed?
Hi,ervery one! I use freebsd5.4+ipfw+natd to setup a box for sharing internet,it's work fine.But i have a very serious problem: Some computer of my inner user was attacked by virus,they make very big volume of stream to internet,so the natd will occupy almost all the cpu,the others can't visit internet at all !! Is there a solution to limit the natd's cpu occupancy or limit every user's stream speed? Any advice is welcome! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
very strange net problem in FreeBSD 5.4
Hi,everyone. I met a very strange net problem in FreeBSD 5.4,it disturbed me very long time,i like freebsd very much,but if this problem can't be resolved,i have to give up it.:( The problem is just like this: My server box located in the education network at China(this is a special net work,mainly for the schools of China),with apache2+cronolog+mysql+pureftp in the same box.The users out of the education network frequently can't visit the www serve of my box,specially at morning(perhaps haven't visit after a long time?).But the users of education network seldom met this problem.Perhaps you will think about that is because of the education network,but the strange thing is that another box with Windows 2003 whith the same netwok condition just works fine,the users out of education network visit it very well.So I think the problem is just because of my box's OS! Firstly,I think perhaps it's because of the TTL of the two OS are different,so I change my FB's TTL to 255,but the problem occurs too.The users frequetly complain they can't visit! Because of cronolog?Apache?Or just because I used virtual website in Apache2? Or other reason lead to the router can't give a stable route?Why the windows OS with the same network condition work so well? Why? Help me please! I have met this problem about half an year! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Cannot Login After Using Kuser to setup Accounts
I found this problem too,It's like that kuser isn't useful at all.Is there a good GUI user manage progrgram? On Apr 12, 2005 10:54 AM, amcinroy <[EMAIL PROTECTED]> wrote: > I have FreeBSD 4.10 installed. Everything was fine till I ran kuser and > rebooted. It said my root password was incorrect even though I hadn't > changed it! I followed the advice I read on one of your posts. The backup > passwd file didn't help. Also when I tried to change to default passwd file, > I received the message that src wasn't a directory. I manually went to > /usr/src it is indeed there but I can't cd to it! Help! > > Alan McInroy > > ___ > 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]"