Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
echo " FWD: Allow all connections OUT and only existing and related ones IN"
$IPTABLES -A FORWARD -i $EXTIF -o $INTIF -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A FORWARD -i $INTIF -o $EXTIF -j ACCEPT
$IPTABLES -A FORWARD -j LOG
echo " Open ports"
$IPTABLES -A INPUT -i $EXTIF -p tcp --dport 4662 -j ACCEPT
$IPTABLES -A OUTPUT -o $EXTIF -p tcp --dport 4662 -j ACCEPT
echo " Enabling SNAT (MASQUERADE) functionality on $EXTIF"
$IPTABLES -t nat -A POSTROUTING -o $EXTIF -s 192.168.0.0/24 -j MASQUERADE
/*-------------------------------------*/
$EXTIF it's my network card, connected to the internet.
But i check eDonkey 4662 port test, it gives me message (if lMule running):
timeout : connection was accepted on ip xxxxxxxxxx
sent hello but no answer was given !??
and Gives me message:
error/resest on ip xxxxxxxxx!
if lMule is not running.
if you have eDokey, you will probably want to masquerade your port 4662. Because eDonkey can't connect to your computer behind the firewall because you don't have a public ip for it.
I currently know too less about iptables to give you a command. But search on the internet, how to masquerade a specific port.
I just finished fixing this same problem on my machine. The problem with me, however, was that I am connecting to the internet through a router (Linksys BFSR41).
To fix it, all I needed to do is set up port triggering for ports 4662 and 4672. You can find out how to do it with other routers at:
www.emule.org > FAQ > English > Ports, Firewalls and Routers > Routers
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.