aMule Forum
English => aMule Help => Topic started by: kampret77 on May 11, 2004, 09:24:50 PM
-
Need assistance configuring port
I am completely new bie in redHat 9. Just installing it for one week. I try to read and search as many as possible to find my question but I am getting confuse.
There are my problems
1. How to open the port in red hat 9. I know it is related with ipTables, but where can I find it and what I am suppose to do with that. And how to reboot the system so that that new ipTable is used.
2.I have a router and it already assigns 192.168.0.100 address to the my redHat9 mac address (make is static), but when I look with ifconfig, the my redhat Ip address is still always 192.168.0.104.
3.How can I make amule program runs every my redhat is running, not matter who is log in and work like a service.
if there any resource that i can use for learning redhat9 and completely for dummies to answer my question above,please tell me :)
Thanks for your attention.
Best regards
LinuxDummies :baby:
-
On ipTables, take a look at the saerch section in this forums and search for iptables, there are quite a few threads on this already ;-)
about the 192.168.0.100 and 192.168.0.104... maybe you haven't enabled DHCP? if so, either you enable it, or you just change one of the IPs (in the router or in the host computer).
About auto-starting aMule, use set up /etc/X11/xinit/.xinit (or something like that... the path and filenames depends on the distro). Just add "amule &" at the end of it, right _before_ the window manager.
About a nice documentation on RedHat: The RedHat Bible ;-) quite complete and available on the ed2k network (oh, that's the network aMule uses! what a coincidence ;-P ). But, if you download it, remember to also buy it, so that you support the author, editorial and the copyrights.
Greetings!
-
i found a nice script here -> http://gcolpart.dyndns.org/howto/p2p.php4
u may have to change it for amule
!/bin/sh
IPT=/sbin/iptables
EXTIF='ppp0'
EXTIP='votre_IP'
#si vous n'avez pas d'IP fixe, faire un script
IPDONKEY='192.168.1.53'
edonkey)
echo "Demarrage service edonkey..."
#accepter le trafic edonkey
$IPT -A INPUT -p tcp --dport 4662 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
$IPT -A INPUT -p udp --dport 4665 -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPT -A INPUT -p udp --dport 4672 -m state --state ESTABLISHED,RELATED -j ACCEPT
#${IPTABLES} -A INPUT -p tcp --dport 4711 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
$IPT -A PREROUTING -t nat -p tcp -d ${EXTIP} --dport 4661:4662 -j DNAT --to-dest ${IPDONKEY}:4661-4662
$IPT -A FORWARD -p tcp -i ${EXTIF} -o ${INTIF} -s 0.0.0.0/0 -d ${IPDONKEY} --dport 4661:4662 -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
$IPT -A PREROUTING -t nat -p udp -d ${EXTIP} --sport 4665 -j DNAT --to-dest ${IPDONKEY}:4665
$IPT -A FORWARD -p udp -i ${EXTIF} -o ${INTIF} -s 0.0.0.0/0 -d ${IPDONKEY} --dport 4665 -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPT -A PREROUTING -t nat -p udp -d ${EXTIP} --dport 4672 -j DNAT --to-dest ${IPDONKEY}:4672
$IPT -A FORWARD -p udp -i ${EXTIF} -o ${INTIF} -s 0.0.0.0/0 -d ${IPDONKEY} --dport 4672 -m state --state ESTABLISHED,RELATED -j ACCEPT
echo "service demarre"
;;
stop)
echo "Extinction complete du firewall.."
$IPT -F INPUT
$IPT -F FORWARD
$IPT -P INPUT ACCEPT
$IPT -t nat -F POSTROUTING
$IPT -t nat -F PREROUTING
echo "extension terminee"
;;
restartdonkey)
echo "redemarrage du service edonkey"
$0 stop
$0 edonkey
;;
*)
echo "Usage: $0 {edonkey|stop|restartdonkey}"
exit 1
esac
exit 0
-
hey
also all the redhad config tools also for your network kard are pretty nicely made...
it should be in your KDE menu under system...
here you can set a static IP for your network card ;) and not worry about what your router does or not does ;)
btw iptabels is a "firewall"... so when you actually have a router infront of your linux box you don't really need to protect your computer twice with setting up iptables on your box ;)
the router should take tare of that ;)
stefanero