LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   special network setting... (https://www.linuxquestions.org/questions/linux-networking-3/special-network-setting-171600/)

newbie44 04-18-2004 06:59 AM

special network setting...
 
Hi,


We have a redhat linux /kernel 2.4.18/ based firewall with 4 network cards.
ETH2 connects to the ADSL modem. ETH0,1,3 connect to the workstations.

ETH1/192.168.7.1/ connects to my computer/192.168.7.7/.

I have read more than hundred topics about this, and try the commands what I read in these topics, but unfortunately noone of them are working.

I would like to open a few ports because I would like to be active user on DC++, and I would like to have highid on Emule.

I know that Emule needs 4662/tcp and 4772/udp ports.
Can DC++ use these ports too?

Can somebody help me with the commands?

This is the iptables of the server:

Generated by iptables-save v1.2.6a on Sun Apr ....
*nat
:PREROUTING ACCEPT (10171:807227)
:POSTROUTING ACCEPT (6:345)
:OUTPUT ACCEPT (62:4454)
-A POSTROUTING -o ppp0 -j MASQUERADE
COMMIT
# Completed on Sun Apr ....
# Generated by iptables-save v1.2.6.a on Sun Apr ....
*filter
:INPUT ACCEPT (1845:240416)
:FORWARD ACCEPT (433132:261544511)
:OUTPUT ACCEPT (1034:143407)
-A INPUT -i ppp0 -m state --state INVALID,NEW -j DROP
-A FORWARD -i ppp0 -m state --state INVALID,NEW -j DROP
COMMIT


If you need any other info about my config just ask it!

Thanks a lot,

leckie 04-18-2004 08:37 AM

iptables -t nat -A PREROUTING -d public_ip -p tcp --dport 9176 -j DNAT --to 192.168.0.2


All times are GMT -5. The time now is 12:55 PM.