DC++ FAQ » Configuration

ID #1094

How do I configure OpenBSD to forward ports for DC++?

This configuration file comes from Slycer, who posted it on the DC++ forum.

# cat /etc/pf.conf
# $OpenBSD: pf.conf,v 1.31 2006/01/30 12:20:31 camield Exp $
#
# See pf.conf(5) and /usr/share/pf for syntax and examples.
# Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
# in /etc/sysctl.conf if packets are to be forwarded between interfaces.

# --- MACRO section
# -- Change ext_ip to your external IP (www.whatismyip.com eg)
ext_if = rl0
int_if = rl1
ext_ip = "111.111.111.111"

# -- Write here the internal IP the box you want to forward the port to
Dc = "192.168.0.1"

# -- Write here which ports you wish to forward
DcUDP = "1111"
DcTCP = "2222"

# --- OPTIONS section
set skip on lo0
set skip on $int_if

# --- TRANSLATION (NAT/RDR) section
nat pass on $ext_if inet from any -> $ext_if

rdr pass on $ext_if proto { tcp, udp } from any to any port { $DcTCP, $DcUDP } -> { $Dc }

# --- FILTER section

# --- default policy
block log all

# --- EXTERNAL INTERFACE RULES
pass out quick on $ext_if inet all keep state

You should then input your external IP in DC++ and then input the DcUDP/DcTCP ports in DC++.

Last update: 2006-06-02 20:45
Author:
Revision: 1.0

Print this record Print this record
Send to a friend Send to a friend
Show this as PDF file Show this as PDF file
Export as XML-File Export as XML-File

Please rate this entry:

Average rating: 0 from 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry