about setfib arpresolve
Hello On freebsd 8 i get kernel: arpresolve: can't allocate llinfo for x.x.x.x How can i get rid off this issue? I saw http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/167947 but how can i patch it ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
about pfctl
I have a freebsd box and pf Works on it. I wish to see use of data for each ip address. When i execute pfctl -t tablename -vT showI can see usages of these ips. Pfctl lists all of ips. But how can i filter it for each ip address ? because i want to insert these data for each ip into a mysql table. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: about pfctl
I have a freebsd box and pf Works on it. I wish to see use of data for each ip address. When i execute pfctl -t tablename -vT showI can see usages of these ips. Pfctl lists all of ips. But how can i filter it for each ip address ? because i want to insert these data for each ip into a mysql table. Sounds like a job for sed(1)... Could you give me an example related to that ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
route issue
Hello On freebsd8.2 when i run netstat -rn i see below; # netstat -rn | grep -r 127.0.0.1 127.0.0.1 127.0.0.1 UHS 0 1462933lo0 As flag i think that it should be UH but on my server as above; How can i fix it ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
doesn't dummynet work with vlan ?
Hello there I use freebsd8.2 I added dummynet and other followings into the kernel; options IPFIREWALL #firewall options IPFIREWALL_VERBOSE #print information about options IPFIREWALL_FORWARD #enable trasparent proxy support options IPFIREWALL_DEFAULT_TO_ACCEPT #allow everything by default options HZ=1000 options DUMMYNET options IPDIVERT options DEVICE_POLLING I have 4 networks which seperate from eachother with vlan. I wish to bandlimit for every vlan network using dummynet. I have 2 ethernet cards for that. one of them is wan other one is inbound is tagged. vlan works well I configured a network to limit using dummynet; ipfw.sh ### ipfw -f flush ipfw pipe 11 config bw 2Mbit/s # Vlan104 ipfw pipe 12 config bw 2Mbit/s # 6.Port on the switch ipfw add pipe 11 ip from any to 10.12.4.0/24 in via em0 ipfw add pipe 12 ip from 10.12.4.0/24 to any out xmit em0 ### em0 is for outside in the server. as a client my pc is in vlan104 namely i am behind the firewall when i execute the ipfw.sh, I can't reach to the internet. ipfw add pipe 12 ip from 10.12.4.0/24 to any out xmit em0 above line works it actually limits but ; ipfw add pipe 11 ip from any to 10.12.4.0/24 in via em0 above line doesn't work properly it obstructs my http and icmp requests. so i can't reach to internet. Whereas i remove ipfw add pipe 11 ip from any to 10.12.4.0/24 in via em0 from ipfw.sh I can either ping at outbound or reach to internet. I tried vlan104 instead of em0 in via em0 that doesn't help me. I don't use proxy. I use nat What can be the problem ? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
About pipe
I use pipe ( dummynet ) with ipfw for bandwidth on freebsd8 There is a /24 ip blok which is 192.168.1.1 - 254 . I pipe them at 20 Mbps. There is an special ip ( 192.168.1.100 ) in it. I would like to allow this ip at 10 Mbps. The 10 mbps is in the 20 mbps. If the ip doesn't use any usage, I 'd like to be All of 20 mbps can be used by the other ips ( 192.168.1.0/24 ) How can I do that ? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
How to deny getting static ip address via pf ?
Hello I use pf on freebsd as packet filter. I have a wireless area. The users get to the internet using automatic ip from the dhcp server. I wish to deny to assign a static ip address by manual. How can I do that with pf or ipfw or another thing? thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
boot problem
Hello I have a freebsd7 box. I also have another PC . I removed the disk from freebsd installed machine and fixed it to the another PC. It Works but there is a problem. While opening the server it waits at boot FreeBSD/i386 boot: Default:0:ad(0,a)/boot/loader Boot: If I press enter, the server opens and it Works. How can I get rid off this ? Bu elektronik posta ve varsa ekleri tamamen gizli ve gonderilen kisiler listesine ozeldir. Eger adiniz gonderilen kisiler listesinde yer almiyorsa, lutfen derhal gonderen kisiyi bilgilendiriniz ve icerigini herhangi baska bir kisiye iletmeyiniz, herhangi bir amac icin kullanmayiniz, sayisal ve basili ortamlar dahil olmak uzere saklamayiniz ve kopyalamayiniz. This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by reply e-mail and delete all copies of this message and attachments. Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: boot problem
Attached sata Disk. it is not usb Namely, The sata disk is attached to new machine. It is connected by sata cable. On Thu, 21 Apr 2011, Yavuz Maşlak wrote: I have a freebsd7 box. I also have another PC . I removed the disk from freebsd installed machine and fixed it to the another PC. How is it connected? USB? It Works but there is a problem. While opening the server it waits at boot FreeBSD/i386 boot: Default:0:ad(0,a)/boot/loader Boot: If I press enter, the server opens and it Works. How can I get rid off this ? Adding kern.cam.boot_delay=1 to /boot/loader.conf helps with some USB drives. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
I can't install php5-mhash from ports
I use freebsd7.3 . I ran portsnap update . I can't install php5-mhash from ports cd /usr/ports/security/php5-mhash # make === Vulnerability check disabled, database not found === License check disabled, port has not defined LICENSE === Extracting for php5-mhash-5.3.2 = MD5 Checksum OK for php-5.3.2.tar.bz2. = SHA256 Checksum OK for php-5.3.2.tar.bz2. tar: php-5.3.2/ext/mhash: Not found in archive tar: Error exit delayed from previous errors. *** Error code 1 Stop in /usr/ports/security/php5-mhash. There is no mhash directory in php-5.3.2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
I can't execute a script in crontab
I use freebsd7.2 I wish to send a file using crontab as periodic. I have a script to send the file. When I am root, I can execute my script, but I can't execute the script using crontab. How can I run it ? cat myscript /usr/bin/scp -i /root/.ssh/id_rsa.pub /root/cpfile r...@192.168.10.9:/var/cpfile Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: I can't execute a script in crontab
the script is already executable but it doesn't work -rwxrwxrwx 1 root wheel .. Either make the script executable or cron it like this: * * * * * /bin/sh /path/to/myscript -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. *** It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead. Thomas Jefferson ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
about tcpdump
I have a network. I wish to log all incoming and outgoing trafficc using tcpdump on my gateway server. But I don't want to log these traffic's data because of they take up much on disk. I only want to log which ports were used, which ip addresses were reached. How can I do these using tcpdump ? Could you give me an example or docs? I use freebsd7.2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
about incoming and outgoing trafficc
I have 2 lines to reach to the internet. I use 2 gateway. one of 2 gateway is a freebsd7.2 gateway. I activated pf on freebsd7.2. I have a fileserver which has a real ip. the fileserver's default gateway is other gateway server. When a traffic comes from internet via freebsd gateway towards the fileserver, if I try to upload a file which has about 10Mbyte from a remote pc to the file server, file transfer performance will be very bad. if I try to download a file from the file server, the file transfer performance will be very well. it is no problem. Or if I disable pf, the problem 's gone and upload/download transfer speed is very well. Or incoming and outgoing trafficc via my pf server , there is no problem. How can I correct this problem ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
is there a tool for estimating loss rates
I have 2 leasedlines for internet. the one is in a country. other one is in a another country. I am looking for a tool for estimating loss packets between 2 lines. is there a tool for it? for instance , while searching, I found badabing tool for that. But I couldn't understand how it estimates loss packets. could you give me an example? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
for vpn connection
I use freebsd7.2 I have an iphone. I wish to establish a vpn connection between the iphone and my freebsd server as client to server. What sort of softwares shall I use for it ? Could you give me an example? any advances? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Cheating OS fingerprinting
Hi all, I want to cheat os fingerprinting tools ( primary nmap) in my freebsd machine. Assume I am using freebsd 8 and I want to be seen as a windows xp machine when someone scans my ports. In order to determine target host's OS, nmap sends seven TCP/IP crafted packets (called tests) and waits for the answer. Results are checked against a database of known results (OS signatures database). If the answer matches any of the entries in the database, it can guess that the remote OS is the same that the one in the database. Some Nmap packets are sent to an open port and the others to a closed port; depending on that results, the remote OS is guessed. So to cheat nmap, I have to analyze all incomming packets (as a firewall) and if a test packet coming from a scanner is found I have to give appropriate reply packet (depending on the os signature I want to use). IPPersonality http://ippersonality.sourceforge.net/ is an old linux patch does the same job. I want to implement a freebsd tool that cheats os fingerprinting. As I said, I have to analyze all incomming packets as a firewall and do some job if packets are comming from a scanner. Can I implement this feature as a patch to PF, or does PF provides some mechanisms to write extension modules? Can you give any advices? Where is to start:) best regards... yavuz ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
writing divert sockets
Hi all, I have a problem while writing divert sockets. I found a simple application and modified it to compile in freebsd. Simple divert socket application only prints incomming packet and reinject packet to IP stack. My simple application and test codes are available at ( http://forums.freebsd.org/showthread.php?t=10589) I think I have a problem in reinject part, i.e writing packet back to ip stack. I have a server application listening on port 2000 and a client sends packet to port 2000. And I have a ipfw rule as: ipfw add 1000 divert 2000 tcp from any to any 2000 In divert socket application a divert socket is created and bind to port 2000. Socket receives packet with no problem: n=recvfrom( fd, packet, BUFSIZE, 0, (struct sockaddr_in *) sin, sinlen); After receiving packet what I want to do is simply reinjecting packet. n=sendto(fd, packet, n ,0, (struct sockaddr *) sin, sinlen); Reinjecting packet is not working in my case. I miss some point:) please help me. In addition to the problem, I couldn't understand a point in man page of divert. The port part of the socket address passed to the sendto(2) contains a tag that should be meaningful to the diversion module. In the case of ipfw(8) the tag is interpreted as the rule number after which rule processing should restart. If I change the port value of sending address to ipfw rule number, how can server receive the packet? (Assume the rule number is 1000 and server listens port 2000. ) Thanks in advance yavuzg ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
antivirus gateway
Hello I wish to use freebsd7.2 as an antivirus gateway. is there any document about that? Could you give an advice ? Thanks Bu elektronik posta ve varsa ekleri tamamen gizli ve gönderilen kişiler listesine özeldir. Eğer adınız gönderilen kişiler listesinde yer almıyorsa, lütfen derhal gönderen kişiyi bilgilendiriniz ve içeriğini herhangi başka bir kişiye iletmeyiniz, herhangi bir amaç için kullanmayınız, sayısal ve basılı ortamlar dahil olmak üzere saklamayınız ve kopyalamayınız. This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by reply e-mail and delete all copies of this message and attachments. Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
about using ppp over ethernet
I use freebsd7.1 I have a adsl modem. I am going to use freebsd as a router and firewall. I wish to use over pppoe. I set the adsl modem as a bridge mode. I configured ppp.conf on freebsd. When I try to connect to internet using ADSL, But I get an error as below; Freebsd can't ping at any outside ip. Therefore I am not able to reach to internet in this way. What am I doing wrong? Any advice ? Thanks May 21 17:35:54 gw110 ppp[1215]: tun0: Phase: bundle: Establish May 21 17:35:54 gw110 ppp[1215]: tun0: Phase: deflink: closed - opening May 21 17:35:54 gw110 ppp[1215]: tun0: Phase: deflink: Connected! May 21 17:35:54 gw110 ppp[1215]: tun0: Phase: deflink: opening - dial May 21 17:35:54 gw110 ppp[1215]: tun0: Phase: deflink: dial - carrier May 21 17:35:55 gw110 ppp[1215]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook SE-ATAKOY-NEC-1) May 21 17:35:55 gw110 ppp[1215]: tun0: Phase: Received NGM_PPPOE_SESSIONID May 21 17:35:55 gw110 ppp[1215]: tun0: Phase: Received NGM_PPPOE_SUCCESS May 21 17:35:55 gw110 ppp[1215]: tun0: Phase: deflink: carrier - login May 21 17:35:55 gw110 ppp[1215]: tun0: Phase: deflink: login - lcp May 21 17:35:56 gw110 ppp[1215]: tun0: Phase: bundle: Authenticate May 21 17:35:56 gw110 ppp[1215]: tun0: Phase: deflink: his = PAP, mine = none May 21 17:35:56 gw110 ppp[1215]: tun0: Phase: Pap Output: x...@ttnet May 21 17:35:57 gw110 ppp[1215]: tun0: Phase: Pap Input: SUCCESS () May 21 17:35:57 gw110 ppp[1215]: tun0: Phase: deflink: lcp - open May 21 17:35:57 gw110 ppp[1215]: tun0: Phase: bundle: Network May 21 17:35:57 gw110 ppp[1215]: tun0: Warning: 0.0.0.0/0: Change route failed: errno: No such process May 21 17:35:57 gw110 ppp[1215]: tun0: Warning: ff02:7::/32: Change route failed: errno: Network is unreachable cat /etc/rc.conf gw110# ifconfig xl0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:60:97:b8:77:eb media: Ethernet autoselect (100baseTX full-duplex) status: active stge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=209bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC ether 00:22:15:10:73:04 inet 10.11.1.221 netmask 0xff00 broadcast 10.11.1.255 media: Ethernet autoselect (100baseTX full-duplex) status: active plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT metric 0 mtu 1500 pflog0: flags=0 metric 0 mtu 33204 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff00 pfsync0: flags=0 metric 0 mtu 1460 syncpeer: 224.0.0.240 maxupd: 128 tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST metric 0 mtu 1492 inet 88.238.76.207 -- 88.238.64.1 netmask 0x Opened by PID 1215 tun1: flags=8010POINTOPOINT,MULTICAST metric 0 mtu 1500 gw110# ping 88.238.76.207 PING 88.238.76.207 (88.238.76.207): 56 data bytes 64 bytes from 88.238.76.207: icmp_seq=0 ttl=64 time=0.831 ms 64 bytes from 88.238.76.207: icmp_seq=1 ttl=64 time=0.222 ms 64 bytes from 88.238.76.207: icmp_seq=2 ttl=64 time=0.206 ms Bu elektronik posta ve varsa ekleri tamamen gizli ve gönderilen kişiler listesine özeldir. Eğer adınız gönderilen kişiler listesinde yer almıyorsa, lütfen derhal gönderen kişiyi bilgilendiriniz ve içeriğini herhangi başka bir kişiye iletmeyiniz, herhangi bir amaç için kullanmayınız, sayısal ve basılı ortamlar dahil olmak üzere saklamayınız ve kopyalamayınız. This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by reply e-mail and delete all copies of this message and attachments. Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
how to rotate a tcpdump file
I wish tcpdump to rotate tcpdump file whose size reaches 10Mbyte. Which command should I use ? Bu elektronik posta ve varsa ekleri tamamen gizli ve gönderilen kişiler listesine özeldir. Eğer adınız gönderilen kişiler listesinde yer almıyorsa, lütfen derhal gönderen kişiyi bilgilendiriniz ve içeriğini herhangi başka bir kişiye iletmeyiniz, herhangi bir amaç için kullanmayınız, sayısal ve basılı ortamlar dahil olmak üzere saklamayınız ve kopyalamayınız. This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by reply e-mail and delete all copies of this message and attachments. Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
How can I extract differences between 2 folders ?
Hello I use freebsd7.1 I have two folders which contains some expressions in everyline as following; File A: abcde 12345 etc. File B: xyzas 12345 etc As above some strings are same and some strings are different. There are several differents between these two files. When I run diff command diff --suppress-common-lines -y -w file1 file2 fileresult like I couldn't result right. How can I extract differences between 2 folders ? Which command do I need to use ? Bu elektronik posta ve varsa ekleri tamamen gizli ve gönderilen kişiler listesine özeldir. Eğer adınız gönderilen kişiler listesinde yer almıyorsa, lütfen derhal gönderen kişiyi bilgilendiriniz ve içeriğini herhangi başka bir kişiye iletmeyiniz, herhangi bir amaç için kullanmayınız, sayısal ve basılı ortamlar dahil olmak üzere saklamayınız ve kopyalamayınız. This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by reply e-mail and delete all copies of this message and attachments. Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: How can I extract differences between 2 folders ?
First I am sorry writing folders instead of files. as far as I see diff command compares differences line by line between 2 files That's to say, File a orange blue yellow File b yellow blue orange diff --suppress-common-lines -w -y a b orange blue blue orange as above you see, A and B files contains the same strings but their's lines are different I wish diff or another command not to display same values which are in different lines. First of all I suppose you're talking about 2 files, not folders. In which case the command you're using isn't looking so bad since it shows the differences between file a and file b: diff --suppress-common-lines -w -y a b abcde | xyasz But since you do not seem to be happy with the output - what should it look like? Armin On Tue 05 May 2009, Yavuz Maşlak wrote: I have two folders which contains some expressions in everyline as following; File A: abcde 12345 etc. File B: xyzas 12345 etc As above some strings are same and some strings are different. There are several differents between these two files. When I run diff command diff --suppress-common-lines -y -w file1 file2 fileresult like I couldn't result right. How can I extract differences between 2 folders ? Which command do I need to use ? -- Armin Pirkovitsch a.pi...@inode.at ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
How can I see all of error messages about server's situation in a log file ?
I use freebsd7.1-release. Sometimes, when I monitor my server on the monitor, I see some messages which are about inform, warning or kernel messages. But I couldn't see these messages in /var/log/messages. How can I do that ? What do I need to set to this ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: is there any way to increase disk performance ?
I increased values of vfs.read_max and MAXPHYS. I observe the disk's performance. New these values help disk performance clearly. Thanks. Yavuz wrote: I have freebsd7 (amd64 bit) and sata2 disk 7200 rpm. it's running mail server which has services like pop3,imap,smtp and webmail on this machine. When I type systat 1 -vmstat on command line, even I rarely see that disk usage hits 100%. I have no problem as ram and cpu. they is enough. is there any way to increase disk performance without causing any problem ? sysctl vfs.read_max=32 can help read performance ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: is there any way to increase disk performance ?
Ok. I increased vfs.read_max while I was looking into this case in google, I see a value of MAXPHYS in my kernel, there is a value called MAXPHYS=(128*1024) as default. What should I set this value ? Yavuz wrote: I have freebsd7 (amd64 bit) and sata2 disk 7200 rpm. it's running mail server which has services like pop3,imap,smtp and webmail on this machine. When I type systat 1 -vmstat on command line, even I rarely see that disk usage hits 100%. I have no problem as ram and cpu. they is enough. is there any way to increase disk performance without causing any problem ? sysctl vfs.read_max=32 can help read performance ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
about upgrade
I have a freebsd7.0-stable how can I upgrade this to freebsd7.1-release ? is there a way for this one which from stable to release ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
usage of swap file
I use freebsd7.0 I have 2 Gbyte RAM and 4 Gbyte Swap. my system sometimes need more memory and although there was 3.90 Gbyte swap, I saw that run out of memory when I see with top command. Why doesn't the machine use swap properly ? What do I have to do ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
is there any way to increase disk performance ?
I have freebsd7 (amd64 bit) and sata2 disk 7200 rpm. it's running mail server which has services like pop3,imap,smtp and webmail on this machine. When I type systat 1 -vmstat on command line, even I rarely see that disk usage hits 100%. I have no problem as ram and cpu. they is enough. is there any way to increase disk performance without causing any problem ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: about vi editor and turkish char
Hello, Where do I have to specify LANG ... expression to support any language in VI ? Ok. I have no problem in many editors about that but I wish to learn for vi . El día Friday, October 31, 2008 a las 06:31:02PM +0200, Yavuz Maslak escribió: Hello I use Freebsd7.0. I am not able to use turkish char while I edit a file with vi editor. How can I correct that ? Hello, You could use a 'xterm' with UTF-8 support, a correct LANG environment, for example LANG=es_ES.UTF-8, and the editor 'vim' (from the ports); to enter UTF-8 chars which are not on your keyboard you could use, for example, KDE's application KCharSelect HIH matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e [EMAIL PROTECTED] - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ A computer is like an air conditioner, it stops working when you open Windows Una computadora es como aire acondicionado, deja de funcionar si abres Windows ___ 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]
about vi editor and turkish char
Hello I use Freebsd7.0. I am not able to use turkish char while I edit a file with vi editor. How can I correct that ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to set quota ( as Mbyte ) for a directory?
On freebsd7, How to set quota for a directory? For instance I want to set 100Mbyte quota for a directory. How can I do that ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to update from 7.0-stable-200805 to 7.0-stable-200807 ?
I use 7.0-STABLE-200805. I want to update it to 7.0-STABLE-200807. How do I update for the last updates clearly ? is there a way to update without reboot the machine or with only one reboot ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
crontab mails
Hello On freebsd7.0, my crontab sends many mails about its jobs. I want crontab not to send these mails How can I do that ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Do I put down cputype in make.conf ?
I have a quad-core intel 64 bit cpu. I got 7.0-STABLE-200806-amd64-disc1.iso from ftp://ftp3.freebsd.org/pub/FreeBSD/snapshots/200806/ I installed freebsd7.0-stable from it. the machine works well. But do I need to edit /etc/make.conf for cputype ? if it need to be edited What should I put down it in /etc/make.conf ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
how to reject all mac addresses except some mac addresses using ipfw?
I use ipfw on freebsd7. I have two questions 1- I want to fix an ip address for each mac address. But some pc and servers have more than an ip address. How can I map multiple ip addresses for a mac address? 2- I want to allow these fixed mac addresses using ipfw. After that I want to deny all mac address via the server's local ethernet card. How can I do these cases? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to reject all mac addresses except some mac addresses usingipfw?
I got my second question. But I should have asked different my first question. I have meant that how can I restrict to use an ip address which I already assigned to a computer, anyone can use at his pc? - Original Message - From: Chuck Swiger [EMAIL PROTECTED] To: Yavuz Maslak [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Tuesday, June 24, 2008 9:01 PM Subject: Re: how to reject all mac addresses except some mac addresses usingipfw? On Jun 24, 2008, at 10:26 AM, Yavuz Maslak wrote: 1- I want to fix an ip address for each mac address. But some pc and servers have more than an ip address. How can I map multiple ip addresses for a mac address? Most people use ifconfig, perhaps indirectly via /etc/rc.conf. 2- I want to allow these fixed mac addresses using ipfw. After that I want to deny all mac address via the server's local ethernet card. How can I do these cases? Few choose to go that route, but you can disable ARP and set up /etc/ ethers, or you could even fire up your favorite firewall (IPFW, PF, whatever), and add allow rules for the permitted MAC addresses, and deny all others. -- -Chuck ___ 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]
Boot problem after reboot during upgrade from frebsd6.1 to freebsd7.0
I followed http://www.freebsd.org/releases/7.0R/announce.html to upgrade freebsd6.1 to 7.0. I forgot compile kernel for freebsd7.0. and I rebooted the machine. The server didn't give any error message during the upgrade. The server tried to boot at freebsd6.1. and it could not boot the system. it came Enter full path of shell on the screen. How can I do correct that ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
is there a sysctl monitor tool ?
Hello I have 2 server . I use FreeBSD6.1 and Freebsd6.0 on them. 1 - Is there any program or command about how much the server use the parameters sysctl values and whether the server exceed the sysctl limits or not ? can you say a command or tool except top, ps, netstat -m ? 2 - While I am looking at system performance with systat command, I sometimes see values in usage of disk over %100 as below, Disks amrd0 pass0 54 ofodintrn 2002 cpu1: time KB/t 16.00 0.00 88 %slo-z 114464 buf2002 cpu3: time tps 251 0 531 tfree 274 dirtybuf MB/s 3.93 0.00 10 desiredvnodes % busy 102 0 83032 numvnodes 25001 freevnodes What cause does this condition ? 3 - On FreeBSD6.1 when I typed netstat -m I saw below values; 173/2827/3000 mbufs in use (current/cache/total) 164/1910/2074/17088 mbuf clusters in use (current/cache/total/max) 164/479 mbuf+clusters out of packet secondary zone in use (current/cache) 0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max) 0/0/0/0 9k jumbo clusters in use (current/cache/total/max) 0/0/0/0 16k jumbo clusters in use (current/cache/total/max) 371K/4526K/4898K bytes allocated to network (current/cache/total) 105906/27714/27042 requests for mbufs denied (mbufs/clusters/mbuf+clusters) 0/0/0 requests for jumbo clusters denied (4k/9k/16k) 0/9/4528 sfbufs in use (current/peak/max) 0 requests for sfbufs denied 0 requests for sfbufs delayed 4 requests for I/O initiated by sendfile 109 calls to protocol drain routines What does 105906/27714/27042 requests for mbufs denied (mbufs/clusters/mbuf+clusters) mean ? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
I could not dial with modem on FreeBSD?
Hello I have a internal modem which runs on windows. I add it on FreeBSD machine to dial an isp phone. But I haven't had the modem run on FreeBSD5.3. My kernel is GENERIC kernel. Here is my /etc/ppp/ppp.conf as below; default: set log Phase Chat LCP IPCP CCP tun command set device /dev/cuaa2 dial: set phone 0123456789 set redial 3.3 100 set reconnect 3 100 set authname *** set authkey *** set timeout 1800 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 delete ALL add default HISADDR enable dns Also I don't know that the machine recognize it or not And I don't know that which Com(1,2,3,4) port the modem uses. I didn't see in dmesg or ppp.log. When I put term after ppp command on the screen.I got error as below; Warning: deflink: /dev/cuaa2: Bad file descriptor Failed to open /dev/cuaa2 in ppp.conf I tried other cuaa(s) like cuaa1 What shall I do ? How can I install this modem on FreeBSD5.3 Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: disk problem
Hello I applied your advice. The problem was solved. Thank you very much Also I saw your the site. it is a very good page. - Original Message - From: Ahmet Bulut [EMAIL PROTECTED] To: freebsd-questions@freebsd.org Sent: Thursday, December 01, 2005 10:36 AM Subject: Re: disk problem Hi, I had same problem while I installed FreeBSD5.4 on my machine. Ata devices may behave erratically, particularly SATA devices. Reported symptoms include command timeouts or missing interrupts. First, Install FreeBSD using safe mode. And than, Disable ACPI and APIC using the ``safe mode'' of the bootloader. hint.acpi.0.disabled=1 hint.apic.0.disabled=1 If avaible, use the host's BIOS setup optios to put the ATA controller in its 'legacy mode'. Ahmet F.L At 01:28 AM 11/30/2005, Yavuz Maslak wrote: Hello I wanted to install freeBSD6.0 on my machine. formerly windows2000 was running on it. But I could not install freebsd. Because it gave an error about harddisk. My harddisk is Western Digital WD400 40Gbyte capacity. I got the error message on the screen as below ATA0_MASTER : FAILURE - ATA_IDENTIFY TIME OUT What shall I do ? Is your drive jumpered correctly? You will get that error if you have a drive jumpered as slave when there is no master. -Glenn ___ 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] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
disk problem
Hello I wanted to install freeBSD6.0 on my machine. formerly windows2000 was running on it. But I could not install freebsd. Because it gave an error about harddisk. My harddisk is Western Digital WD400 40Gbyte capacity. I got the error message on the screen as below ATA0_MASTER : FAILURE - ATA_IDENTIFY TIME OUT What shall I do ? smime.p7s Description: S/MIME cryptographic signature
I could not become superuser
Hello I installed FreeBSD6.0. and it was running well by today . My FreeBSD server gave a problem about user login. I could not become superuser. my user that has superuser. When I login the server this user the screen gives things as below usersu not running setuid what shell I do ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: I could not become superuser
Yes I have tried to su from a non root user login. I can login with root user. the machine already belongs to me. And I checked condition of users and groups again. My user had been added to wheel group. Also When I make a new user that has a member of wheel in order to su. I could not become su. usersu usersu not running setuid. - Original Message - From: Jerry McAllister [EMAIL PROTECTED] To: Yavuz Maslak [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Friday, November 18, 2005 5:06 PM Subject: Re: I could not become superuser Hello I installed FreeBSD6.0. and it was running well by today . My FreeBSD server gave a problem about user login. I could not become superuser. my user that has superuser. When I login the server this user the screen gives things as below usersu not running setuid what shell I do ? I think you are saying that you tried to 'su' from a non root user login. Is that true? If so, the thing to check is if that user is in the 'wheel' group. Look in the file /etc/group and make sure that user is added to the wheel group. If you have no root access at all, you will need to learn how to boot to single user and create a root account for yourself or put a password on the root account. That (single user booting) is all well layed out in documentation and in the list archives and in FAQs. jerry ___ 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] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: I could not become superuser
Thanks a lot my problem has been solved. the permission wrong caused this problem. I rewrote permission right as below chmod 4755 /usr/bin/su - Original Message - From: Bill Moran [EMAIL PROTECTED] To: Jerry McAllister [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; freebsd-questions@freebsd.org Sent: Friday, November 18, 2005 5:13 PM Subject: Re: I could not become superuser Jerry McAllister [EMAIL PROTECTED] wrote: Hello I installed FreeBSD6.0. and it was running well by today . My FreeBSD server gave a problem about user login. I could not become superuser. my user that has superuser. When I login the server this user the screen gives things as below usersu not running setuid what shell I do ? I think you are saying that you tried to 'su' from a non root user login. Is that true? If so, the thing to check is if that user is in the 'wheel' group. Look in the file /etc/group and make sure that user is added to the wheel group. Actually, I believe su is more helpful if that's the case, giving an error such as you are not in the correct group ... The not running setuid makes me wonder. Have you changed permissions on any files on that machine. the su program will need setuid permissions and be owned by root to work properly. On my 5.4 machine, it looks like this: ls -l /usr/bin/su -r-sr-xr-x 1 root wheel 14292 May 27 12:24 /usr/bin/su -- Bill Moran Potential Technologies http://www.potentialtech.com ___ 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]
how to convert lower case to uppercase in a word in a line ?
Hello There is a word that consists lowercases. How to change all of letters capital letters in stead of lowercase ? is there any script about that ? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
about newsyslog
Hello I use FreeBSD5.3 I want to change maillog file more frequent. As you know the file named maillog file changes once in a day. There is a file named newsyslog.conf in /etc How can I do change file named maillog everyhour with /etc/newsyslog.conf ? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: about newsyslog
Hello again I have already read that man pages about newsyslog it only shows daily,weekly,yearly etc. but I couldn't find to change every hour in everyday or to change every 3 hours in a day. help please... - Original Message - From: Giorgos Keramidas [EMAIL PROTECTED] To: Yavuz [EMAIL PROTECTED] Cc: freebsd-questions@freebsd.org Sent: Tuesday, September 13, 2005 6:17 PM Subject: Re: about newsyslog On 2005-09-13 18:09, Yavuz [EMAIL PROTECTED] wrote: Hello I use FreeBSD5.3 I want to change maillog file more frequent. As you know the file named maillog file changes once in a day. There is a file named newsyslog.conf in /etc How can I do change file named maillog everyhour with /etc/newsyslog.conf ? By setting up the relevant line in your ``/etc/newsyslog.conf'' file: The format of this file is described in the manpage: % man newsyslog.conf If you do read the manpage and you still have questions, then it's either a bug of the manpage or something we can clarify on the list, so don't hesitate to ask again :-) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
copy or listing problem
Hello I use freebsd4.9 I have thousands of files in my any directory. and I need to copy them to another directory. but when I started to copy them I got error as below; /bin/cp: Argument list too long. Do I have to copy them in pieces ? What shall I do ? Thanks ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
size of net.inet.tcp.sendspace and net.inet.tcp.recvspace
hello i want to tune on freebsd4.9, My server has pentium 4, 2.8Ghz, 73*4 Gbyte scsi disk (Raid5), 2Gbyte ram. it runs apache 1.3x. For max performance, What does myserver should be size of net.inet.tcp.sendspace and net.inet.tcp.recvspace or other values ? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
where can i get freebsd4.8 iso file for ultrasparc architectural ?i couldn't see it
___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]