Hello there,
I usefreebsd8.2 FreeBSD 8.2. I added dummynet and the following to the kernel;
I have four networks which seperate from each other with VLANs. I wish to limit bandwidth for every VLAN network using dummynet. I have two ethernet cards for that. One of them is WAN, the other one is inbound is tagged. VLAN works well. I configured a network to limit using dummynet; ipfw.sh:
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 the internet.
Above line works it actually limits but
Above line doesn't work properly, it obstructs my http and ICMP requests. So I can't reach the internet.
When I remove
from ipfw.sh I can either ping outbound or reach the internet.
I tried vlan104 instead of em0
That doesn't help me.
What can be the problem?
Thanks
I use
Code:
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 four networks which seperate from each other with VLANs. I wish to limit bandwidth for every VLAN network using dummynet. I have two ethernet cards for that. One of them is WAN, the other one is inbound is tagged. VLAN works well. I configured a network to limit using dummynet; ipfw.sh:
Code:
###
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 the internet.
Code:
ipfw add pipe 12 ip from 10.12.4.0/24 to any out xmit em0
Above line works it actually limits but
Code:
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 the internet.
When I remove
Code:
ipfw add pipe 11 ip from any to 10.12.4.0/24 in via em0
I tried vlan104 instead of em0
Code:
in via em0
What can be the problem?
Thanks