documentation:examples:fair_traffic_shaping_per_ip_with_ipfw-dummynet
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:examples:fair_traffic_shaping_per_ip_with_ipfw-dummynet [2016/12/09 09:12] – external edit 127.0.0.1 | documentation:examples:fair_traffic_shaping_per_ip_with_ipfw-dummynet [2020/05/14 23:32] (current) – [Traffic shaper configuration] olivier | ||
---|---|---|---|
Line 71: | Line 71: | ||
< | < | ||
- | sysrc hostname=R1 | + | sysrc hostname=R1 |
- | sysrc gateway_enable=no | + | gateway_enable=no |
- | sysrc ipv6_gateway_enable=no | + | ipv6_gateway_enable=no |
- | sysrc ifconfig_vtnet4=" | + | ifconfig_vtnet4=" |
- | sysrc ifconfig_vtnet4_ipv6=" | + | ifconfig_vtnet4_ipv6=" |
- | sysrc rtsold_enable=" | + | rtsold_enable=" |
+ | service hostname restart | ||
service netif restart | service netif restart | ||
service routing restart | service routing restart | ||
Line 86: | Line 87: | ||
< | < | ||
- | sysrc hostname=R2 | + | sysrc hostname=R2 |
- | sysrc gateway_enable=no | + | |
- | sysrc ipv6_gateway_enable=no | + | |
- | sysrc ifconfig_vtnet4=" | + | |
- | sysrc ifconfig_vtnet4_ipv6=" | + | |
- | sysrc rtsold_enable=" | + | |
+ | service hostname restart | ||
service netif restart | service netif restart | ||
service routing restart | service routing restart | ||
Line 101: | Line 103: | ||
< | < | ||
- | sysrc hostname=R3 | + | sysrc hostname=R3 |
- | sysrc gateway_enable=no | + | gateway_enable=no |
- | sysrc ipv6_gateway_enable=no | + | ipv6_gateway_enable=no |
- | sysrc ifconfig_vtnet4=" | + | ifconfig_vtnet4=" |
- | sysrc ifconfig_vtnet4_ipv6=" | + | ifconfig_vtnet4_ipv6=" |
- | sysrc rtsold_enable=" | + | rtsold_enable=" |
+ | service hostname restart | ||
service netif restart | service netif restart | ||
service routing restart | service routing restart | ||
Line 115: | Line 118: | ||
==== Internet server configuration ==== | ==== Internet server configuration ==== | ||
- | It's a simple static host | + | It's a simple static |
< | < | ||
- | sysrc hostname=R5 | + | sysrc hostname=R5 |
- | sysrc gateway_enable=no | + | gateway_enable=no |
- | sysrc ipv6_gateway_enable=no | + | ipv6_gateway_enable=no |
- | sysrc ifconfig_vtnet3=" | + | ifconfig_vtnet3=" |
- | sysrc ifconfig_vtnet3_ipv6=" | + | ifconfig_vtnet3_ipv6=" |
- | sysrc defaultrouter=" | + | defaultrouter=" |
- | sysrc ipv6_defaultrouter=" | + | ipv6_defaultrouter=" |
+ | service hostname restart | ||
service netif restart | service netif restart | ||
service routing restart | service routing restart | ||
Line 134: | Line 138: | ||
< | < | ||
- | sysrc hostname=R4 | + | sysrc hostname=R4 |
- | sysrc ifconfig_vtnet4=" | + | ifconfig_vtnet4=" |
- | sysrc ifconfig_vtnet4_ipv6=" | + | ifconfig_vtnet4_ipv6=" |
- | sysrc ifconfig_vtnet3=" | + | ifconfig_vtnet3=" |
- | sysrc ifconfig_vtnet3_ipv6=" | + | ifconfig_vtnet3_ipv6=" |
- | sysrc rtadvd_enable=yes | + | rtadvd_enable=yes |
- | sysrc rtadvd_interfaces=vtnet4 | + | rtadvd_interfaces=vtnet4 |
- | sysrc dhcpd_enable=YES | + | dhcpd_enable=YES |
- | sysrc dhcpd_flags=" | + | dhcpd_flags=" |
- | sysrc dhcpd_conf="/ | + | dhcpd_conf="/ |
- | sysrc dhcpd_ifaces=" | + | dhcpd_ifaces=" |
- | sysrc firewall_enable=YES | + | firewall_enable=YES |
- | sysrc firewall_script="/ | + | firewall_script="/ |
cat > / | cat > / | ||
Line 183: | Line 187: | ||
# We don't want to block traffic, only shape some | # We don't want to block traffic, only shape some | ||
${fwcmd} add 3000 allow ip from any to any | ${fwcmd} add 3000 allow ip from any to any | ||
- | EOF | + | 'EOF' |
+ | service hostname restart | ||
service netif restart | service netif restart | ||
service routing restart | service routing restart |
documentation/examples/fair_traffic_shaping_per_ip_with_ipfw-dummynet.1481271148.txt.gz · Last modified: 2016/12/09 09:12 by 127.0.0.1