[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

IRC DCC forbindelse



Hejsa

Jeg forsøger at bruge dcc protokollen i mirc. Jeg har en windows xp pc med en irc klient, og en linux boks med iptables som router.

Jeg har følgende som en bash-fil til at starte firewallen
---------------
IPTABLES="/usr/local/sbin/iptables"

IF_INT=eth0
IF_EXT=eth1

EXT_IP=`ifconfig eth1 | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`
INT_IP=192.168.x.x
MP_IP=192.168.x.y


$IPTABLES -P INPUT ACCEPT
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -P FORWARD ACCEPT

## masquerade connections from LAN
$IPTABLES -t nat -A POSTROUTING -o $IF_EXT -s 192.168.1.0/24 -d 0/0 -j MASQUERADE
$IPTABLES -A INPUT -i $IF_EXT -p all -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A FORWARD -i $IF_EXT -p all -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A FORWARD -i $IF_INT -p all -m state --state ESTABLISHED,RELATED -j ACCEPT


FORWARD_PORT="25,59,80,110,113,119,443,1863"
$IPTABLES -A FORWARD -m multiport -p tcp -s 192.168.1.0/24 --dport $FORWARD_PORT -j ACCEPT


# start irc specifikt
startport=6667
endport=6690
while [ "$startport" -lt "$endport" ]
do
$IPTABLES -A PREROUTING -t nat -p tcp -i $IF_EXT --dport $startport -j DNAT --to-destination $MP_IP
$IPTABLES -A FORWARD -p tcp --dport $startport -j ACCEPT
$IPTABLES -A FORWARD -p tcp --sport $startport -j ACCEPT
let "startport+=1"
done


startport=1024
endport=1044
while [ "$startport" -lt "$endport" ]
do
$IPTABLES -A PREROUTING -t nat -p tcp -i $IF_EXT --dport $startport -j DNAT --to-destination $MP_IP
$IPTABLES -A FORWARD -p tcp --dport $startport -j ACCEPT
$IPTABLES -A FORWARD -p tcp --sport $startport -j ACCEPT
let "startport+=1"
done


Jeg kan fint forbinde til irc, og chatte, men der kan ikke komme nogle dcc forbindelse igennem. DCC er i irc sat til at bruge port 1024 til 1043. Øvrige ting som mail og www virker fint.
Er der nogen der kan forklare mig hvad jeg gør galt? på forhånd tak.


mvh Lars Nielsen

 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-10-01, 02:01 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *