|
| |||||
| Home | Reviews | Tools | Forums | FAQs | Find Service | ISP News | Maps | About |
how-to block ads |
How to set up active mode on FreeBSD (using ipfw/natd firewall)
${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 •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
by USR56K | |||||
| Wednesday, 08-Feb 10:24:36 | Terms of Use & Privacy | feedback | contact | Hosting by nac.net - DSL,Hosting & Co-lo over 12.5 years online! © 1999-2012 dslreports.com. |