Welcome to gameserver
 | Contribute | Web Resources | Past Polls | Calendar | Advanced Search | Site Statistics 
Welcome to Pandaemonium Thursday, September 09 2010 @ 11:09 PM EST
Pandaemonium
Welcome to Pandaemonium. Our intention is to support the WA BSD community and spread the word about BSD.

From Pandaemonium, capital of Hell in Paradise Lost, an epic poem by John Milton: Greek pan (all), Latin daemonium (from Greek daimonion - lesser god, demon). Literally "all demons".

Section Block
Home
News (45/0)
Jobs:Needed (2/0)
Security (6/0)
Humour (2/0)
ISPs (1/0)
E-Commerce (2/0)
Misc. (11/0)
Hackers (2/0)
Networking (6/0)
X-Windows (10/0)
Kernel (3/0)
Hardware (1/0)
Multimedia (2/0)
Installation (4/0)
Newbies (1/0)
Jobs:Seeking (1/0)

Business
Consulting
New Millennium Networking
Hardware
New Millennium Networking
ISPs
New Millennium Networking
Highway 1
Australian Palm Users Group

User Functions
Username:

Password:

Don't have an account yet? Sign up as a New User

Events Block
There are no upcoming events

Slashdot.org
  • Rackspace Shuts Down Quran-Burning Church's Sites
  • IOS 4.1 Jailbroken Already
  • Scientists Cut Greenland Ice Loss Estimate By Half
  • DARPA Wants Extreme Wireless Interference Buster
  • Film Industry Hires Cyber Hitmen To Take Down Pirates
  • The Real "Stuff White People Like"
  • Biometric IDs For All India's Citizens
  • Big Brother In the School Cafeteria?
  • Viking Landers Might Have Missed Martian Organics
  • Online Ads, Privacy Remain In FTC Crosshairs
  • Solar Cells Made From Bioluminescent Jellyfish
  • Anti-Product Placement For Negative Branding
  • How 6 Memorable Tech Companies Got Their Names
  • School Swaps Math Textbooks For iPads
  • Microsoft Suspends Gamer For Being From Fort Gay


  • Better Bandwidth Utilization   
    Sunday, March 09 2003 @ 08:15 AM EST
    Contributed by: deece

    After reading this article by Daniel Hartmeier, I've applied the same concepts to FreeBSD. The end result is that you can max out your outbound bandwidth without (majorly) affecting your incoming bandwidth.

    First, ensure you have firewalling and Dummynet compiled into your kernel. To do so, add the following lines to your kernel and recompile:
    options IPFIREWALL
    options IPDIVERT
    options DUMMYNET
    options HZ=1000

    Now, create a firewall file as /etc/firewall.rules with the following rules (adjusting rules 1000+ to your tastes). I use /usr/bin/cpp as the preprocessor.
    #define internet_if rl0

    /* Set this to just below your outbound bandwidth */
    #define internet_bw 248Kbit/s

    #define nat 1
    /* Remove the line below to enable NAT */
    #undef nat

    #ifdef nat
    add 50 divert natd all from any to any via internet_if
    #endif

    /* Set up dummynet pipes */
    pipe 1 config bw internet_bw
    queue 1 config pipe 1 weight 100
    queue 2 config pipe 1 weight 1 mask all

    /* UDP and TCP ACKs get high weights */
    add 100 queue 1 udp from any to any out via internet_if
    add 101 skipto 1000 udp from any to any out via internet_if
    add 110 queue 1 tcp from any to any out via internet_if tcpflags ack
    add 111 skipto 1000 tcp from any to any out via internet_if tcpflags ack

    /* Other IP traffic gets low weights */
    add 120 queue 2 ip from any to any out via internet_if

    /* Firewall rules begin here */
    add 1000 allow all from any to any

    Now, edit /etc/sysctl.conf and add the following line:
    net.inet.ip.fw.one_pass=0

    You're now ready to go, reboot to load the new firewall & dummynet code (if you haven't already done so) and issue the following command to test out the new firewall rules:
    ipfw -f flush && ipfw -p /usr/bin/cpp /etc/firewall.rules

    Once you are satisfied with the configuration, make it permanent by added the following lines to /etc/rc.conf:
    firewall_enable="YES"
    firewall_type="/etc/firewall.rules"
    firewall_flags="-p /usr/bin/cpp"

      [ Views: 5925 ]  


    What's Related
  • this article
  • Daniel Hartmeier
  • More by deece
  • More from Networking

  • Story Options
  • Mail Story to a Friend
  • Printable Story Format


  • Created this page in 0.08 seconds

     Copyright © 2010 Pandaemonium
     All trademarks and copyrights on this page are owned by their respective owners.

    Powered By