Search:  

 
 
   All FAQsSite FAQDSL FAQCable TechAbout DSLDistanceCLECSDSL Hurdles»»






how-to block ads



Search for: in all FAQs
How to set up active mode on FreeBSD (using ipfw/natd firewall)

    Edit your ipfw rules list (usually something like /etc/rc.ipfw) . In there somewhere, you should have a rule that diverts all traffic to natd, which should look something like:
    ${fwcmd} add divert natd all from any to any via ${natd_interface}

    Below this, add as your next rule:
    # Direct Connect Active Mode Port Forwarding
    ${fwcmd} add pass all from any to any 1776 via ${oif}
    ${fwcmd} add pass all from any to any 1776 via ${iif}

    For "1776," replace any port (preferably something above 1000) that you would like as your forwarded port. Save and close /etc/rc.ipfw.
    Next open up your /etc/natd.conf file. Make sure the top line has your interface listed (replace "de0" with whatever your outside interface is):
    interface de0
    Then add the following two lines at the end:
    redirect_port tcp 192.168.70.2:1776 1776
    redirect_port udp 192.168.70.2:1776 1776

    For 192.168.70.2, substitute the internal IP of your machine running DC++. For "1776," substitute whichever port you used above in your /etc/rc.ipfw file.
    Finally, we need to reset ipfw and also natd.
    Type: ps aux | grep natd

    Find the process # for natd. Now we need to kill the process and restart it:
    Type: kill -9 && natd -f /etc/natd.conf
    Last step, time to reset ipfw to make sure our traffic gets through:
    /sbin/ipfw -f flush
    /bin/sh /etc/rc.ipfw

Submitted by SeeKay303



feedback form

by USR56K See Profile edited by JMGullett See Profile
last modified: 2007-01-29 16:11:23



Sunday, 05-Jul 10:17:55 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 9.5 years online! © 1999-2009 dslreports.com.republican-creole