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"
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"
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"
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"
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"
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]"
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"
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 show"I 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 show"I 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"
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"
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"
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"
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"
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"
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]"
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 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"
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=8843 metric 0 mtu 1500 options=8 ether 00:60:97:b8:77:eb media: Ethernet autoselect (100baseTX ) status: active stge0: flags=8843 metric 0 mtu 1500 options=209b ether 00:22:15:10:73:04 inet 10.11.1.221 netmask 0xff00 broadcast 10.11.1.255 media: Ethernet autoselect (100baseTX ) status: active plip0: flags=108810 metric 0 mtu 1500 pflog0: flags=0<> metric 0 mtu 33204 lo0: flags=8049 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=8051 metric 0 mtu 1492 inet 88.238.76.207 --> 88.238.64.1 netmask 0x Opened by PID 1215 tun1: flags=8010 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"
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"
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"