<?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=193.154.18.47</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=193.154.18.47"/>
		<link rel="alternate" type="text/html" href="http://test.amule.szerverem.hu/wiki/Special:Contributions/193.154.18.47"/>
		<updated>2026-04-05T18:07:52Z</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>2005-01-09T09:03:34Z</updated>
		
		<summary type="html">&lt;p&gt;193.154.18.47: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''NOTE:''' If you run [http://www.suse.com SuSE Linux], try [[Firewall_SuSE|this HowTo]] first.&lt;br /&gt;
&lt;br /&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='''4662'''''&amp;lt;br&amp;gt;&lt;br /&gt;
''EMULEUDP='''4672'''''&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-string 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 $EMULEHOST -m state --state ESTABLISHED,RELATED -j ACCEPT''&lt;br /&gt;
&lt;br /&gt;
where ''INTIF'' is your internal interface and ''EMULEHOST'' is the host running the emule server on your internal network.&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 $EMULEHOST -j ACCEPT''&amp;lt;br&amp;gt;&lt;br /&gt;
''iptables -A FORWARD -i $EXTIF -o $INTIF -p udp --dport $EMULEUDP -d $EMULEHOST -j ACCEPT''&amp;lt;br&amp;gt;&lt;br /&gt;
''iptables -A FORWARD -i $EXTIF -o $INTIF -p udp --dport $EMULEUDP2 -d $EMULEHOST -j ACCEPT''&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>193.154.18.47</name></author>	</entry>

	</feed>