<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://test.amule.szerverem.hu/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://test.amule.szerverem.hu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=213.54.66.30</id>
		<title>AMule Project FAQ - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://test.amule.szerverem.hu/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=213.54.66.30"/>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Special:Contributions/213.54.66.30"/>
		<updated>2026-04-05T19:47:07Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/Firewall</id>
		<title>Firewall</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Firewall"/>
				<updated>2004-10-21T20:33:25Z</updated>
		
		<summary type="html">&lt;p&gt;213.54.66.30: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you set TCP port in [[aMule]] to XX and UDP port to YY then you have to set your firewall like this:&lt;br /&gt;
&lt;br /&gt;
''iptables -A INPUT -p tcp  --dport XX -j ACCEPT''&amp;lt;br&amp;gt;&lt;br /&gt;
''iptables  -A INPUT -p udp  --dport XX+3 -j ACCEPT''&amp;lt;br&amp;gt;&lt;br /&gt;
''iptables -A INPUT  -p udp  --dport YY -j ACCEPT''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to setup [[aMule]] behind a NAT gateway, you should add these lines to your [http://www.netfilter.org iptables] configuration script, on the gateway :&lt;br /&gt;
&lt;br /&gt;
''EXTIF'' is your external interface&lt;br /&gt;
&lt;br /&gt;
''EMULEPORT=5595''&amp;lt;br&amp;gt;&lt;br /&gt;
''EMULEUDP=5595''&amp;lt;br&amp;gt;&lt;br /&gt;
''EMULEUDP2=`expr $EMULEPORT + 3`''&amp;lt;br&amp;gt;&lt;br /&gt;
''EMULEHOST=10.0.0.2''&amp;lt;br&amp;gt;&lt;br /&gt;
''iptables -t nat -A PREROUTING -i $EXTIF -p tcp --destination-port $EMULEPORT -j DNAT --to-destination $EMULEHOST:$EMULEPORT''&amp;lt;br&amp;gt;&lt;br /&gt;
''iptables -t nat -A PREROUTING -i $EXTIF -p udp --destination-port $EMULEUDP -j DNAT --to-destination $EMULEHOST:$EMULEUDP''&amp;lt;br&amp;gt;&lt;br /&gt;
''iptables -t nat -A PREROUTING -i $EXTIF -p udp --destination-port $EMULEUDP2 -j DNAT --to-destination $EMULEHOST:$EMULEUDP2''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You also should make sure that your FORWARD-chain is set up correctly. Usually, you will have an entry like this:&lt;br /&gt;
&lt;br /&gt;
''iptables -A FORWARD -i $EXTIF -o $INTIF -d $INTIP -m state --state ESTABLISHED,RELATED -j ACCEPT''&lt;br /&gt;
&lt;br /&gt;
where ''INTIF'' is your internal interface and ''INTIP'' is your [http://www.ietf.org/rfc/rfc0791.txt IP].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will prevent new connections. So, you should allow all forwarding for [[aMule]]-related ports:&lt;br /&gt;
&lt;br /&gt;
''iptables -A FORWARD -i $EXTIF -o $INTIF -p tcp --dport $EMULEPORT -d $INTIP -j ACCEPT''&amp;lt;br&amp;gt;&lt;br /&gt;
''iptables -A FORWARD -i $EXTIF -o $INTIF -p udp --dport $EMULEUDP -d $INTIP -j ACCEPT''&amp;lt;br&amp;gt;&lt;br /&gt;
''iptables -A FORWARD -i $EXTIF -o $INTIF -p udp --dport $EMULEUDP2 -d $INTIP -j ACCEPT''&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>213.54.66.30</name></author>	</entry>

	<entry>
		<id>http://test.amule.szerverem.hu/wiki/Firewall</id>
		<title>Firewall</title>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Firewall"/>
				<updated>2004-10-21T17:41:10Z</updated>
		
		<summary type="html">&lt;p&gt;213.54.66.30: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you set TCP port in [[aMule]] to XX and UDP port to YY then you have to set your firewall like this:&lt;br /&gt;
&lt;br /&gt;
''iptables -A INPUT -p tcp  --dport XX -j ACCEPT''&amp;lt;br&amp;gt;&lt;br /&gt;
''iptables  -A INPUT -p udp  --dport XX+3 -j ACCEPT''&amp;lt;br&amp;gt;&lt;br /&gt;
''iptables -A INPUT  -p udp  --dport YY -j ACCEPT''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you want to setup [[aMule]] behind a NAT gateway, you should add these lines to your [http://www.netfilter.org iptables] configuration script, on the gateway :&lt;br /&gt;
&lt;br /&gt;
''EXTIF'' is your external interface&lt;br /&gt;
&lt;br /&gt;
''EMULEPORT=5595''&amp;lt;br&amp;gt;&lt;br /&gt;
''EMULEUDP=5595''&amp;lt;br&amp;gt;&lt;br /&gt;
''EMULEUDP2=`expr $EMULEPORT + 3`''&amp;lt;br&amp;gt;&lt;br /&gt;
''EMULEHOST=10.0.0.2''&amp;lt;br&amp;gt;&lt;br /&gt;
''iptables -t nat -A PREROUTING -i $EXTIF -p tcp --destination-port $EMULEPORT -j DNAT --to-destination $EMULEHOST:$EMULEPORT''&amp;lt;br&amp;gt;&lt;br /&gt;
''iptables -t nat -A PREROUTING -i $EXTIF -p udp --destination-port $EMULEUDP -j DNAT --to-destination $EMULEHOST:$EMULEUDP''&amp;lt;br&amp;gt;&lt;br /&gt;
''iptables -t nat -A PREROUTING -i $EXTIF -p udp --destination-port $EMULEUDP2 -j DNAT --to-destination $EMULEHOST:$EMULEUDP2''&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You also should make sure that your FORWARD-chain is set up correctly. Usually, you will have an entry like this:&lt;br /&gt;
&lt;br /&gt;
''INTIF'' is your internal interface, ''INTIP'' its IP&lt;br /&gt;
&lt;br /&gt;
''iptables -A FORWARD -i $EXTIF -o $INTIF -d $INTIP -m state --state ESTABLISHED,RELATED -j ACCEPT''&lt;br /&gt;
&lt;br /&gt;
This will prevent new connections. So, you should allow all forwarding for [[aMule]]-related ports:&lt;br /&gt;
&lt;br /&gt;
''iptables -A FORWARD -i $EXTIF -o $INTIF -p tcp --dport $EMULEPORT -d $INTIP -j ACCEPT''&amp;lt;br&amp;gt;&lt;br /&gt;
''iptables -A FORWARD -i $EXTIF -o $INTIF -p udp --dport $EMULEUDP -d $INTIP -j ACCEPT''&amp;lt;br&amp;gt;&lt;br /&gt;
''iptables -A FORWARD -i $EXTIF -o $INTIF -p udp --dport $EMULEUDP2 -d $INTIP -j ACCEPT''&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>213.54.66.30</name></author>	</entry>

	</feed>