portfw met ipmasqadm: webserver wel, ICQ niet?

Pagina: 1
Acties:

  • Roelant
  • Registratie: Januari 2001
  • Niet online
Ik heb sinds kort een linuxdoosje staan, draaiend onder een 2.2.x kernel (met debian, testing).

Met behulp van ipchains deel ik de internetverbinding met 4 clients, waaronder mijn eigen (windows 2000) workstation.

Om ICQ files te kunnen ontvangen, heb ik een 15-tal poorten geforward naar mijn workstation, op IP 192.168.1.5. Ik heb zo ongeveer alles geprobeert, maar krijg dit niet aan de praat.

De request komt wel door, maar de daadwerkelijke transferr loopt vast, en geeft aan de andere kant "Can't establish direct connection.".

Om te testen of forwarding uberhaubt wilde, heb ik op de desktop een webserver aangeslingerd, met de volgende portforwarding:
code:
1
ipmasqadm portfw -a -P tcp -L <chelloIP> 81  -R 192.168.1.5 80

Dat werkt wél.

Terwijl ik ICQ op de zelfde manier geforward heb, en ICQ op een bepaalde portrange heb ingesteld, werkt dat dus niet, of maar half (de transferr request komt door, maar er kan uiteindelijk geen connectie worden gemaakt voor de file).

Zie ik iets over het hoofd? Vergeet ik iets? Wie helpt mij uit de brand :)

  • odysseus
  • Registratie: Augustus 2000
  • Laatst online: 16:17

odysseus

Debian GNU/Linux Sid

Daar is vrees ik weinig aan te doen, op een optie na: het gebruik van een socks-server. Voor meer informatie over mogelijke oplossingen en problemen, zie [url=http://www.linux.org/docs/ldp/howto/IP-Masquerade-HOWTO/icq.html]hier[/url.

Overigens is die link het bovenste resultaat als ik bij Google zoek op 'linux', 'ipmasqadm' en 'ICQ'...

Leven is het meervoud van lef | In order to make an apple pie from scratch, you must first create the universe.


  • Roelant
  • Registratie: Januari 2001
  • Niet online
Op donderdag 14 maart 2002 15:43 schreef odysseus het volgende:
Daar is vrees ik weinig aan te doen, op een optie na: het gebruik van een socks-server. Voor meer informatie over mogelijke oplossingen en problemen, zie hier.

Overigens is die link het bovenste resultaat als ik bij Google zoek op 'linux', 'ipmasqadm' en 'ICQ'...
Het tweede voorbeeldscript met ipmasqadm portfw wat daar gegeven wordt:
code:
1
2
3
4
5
6
port=2000
while [ $port -le 2020 ]
  do
    /usr/local/sbin/ipmasqadm portfw -a -P tcp -L 10.1.2.3 $port -R 192.168.0.10 $port
    port=$((port+1))
done

... is wat ik dus heb draaien. Maar dan met kloppende IP's en een andere poortrange :)

Ik heb TFS ge-Ut, ik heb man de kleren van zijn lijf gevraagd, maar het wil gewoon niet :?

  • odysseus
  • Registratie: Augustus 2000
  • Laatst online: 16:17

odysseus

Debian GNU/Linux Sid

Maar bovenin die pagina staat de volgende zin:
With port forwarding, basic ICQ chat will work but file transfers might not be very reliable.
Ik vermoed dat je daar tegenaan loopt. Is het draaien van een proxy-server een optie?
Van een andere pagina, over portforwarding:
• Now, in ICQ's Preferences-->Connection, configure it to be "Behind a LAN" and "Behind a firewall or Proxy". Now, click on "Firewall Settings" and configure it to be "I don't use a SOCK5 proxy". Also note that it was previously recommended to change ICQ's "Firewall session timeouts" to "30" seconds BUT many users have found that ICQ becomes unreliable. It has been found that ICQ is more reliable with its stock timeout setting (don't enable that ICQ option) and simply change MASQ's timeout to 160 seconds. You can see how to change this timeout in the section called Linux 2.0.x Kernels in Chapter 3 and the section called Linux 2.2.x Kernels in Chapter 3 rulesets. Finally, click on Next and configure ICQ to "Use the following TCP listen ports.." from "2000" to "2020". Now click done.

Now ICQ will tell you that you will have to restart ICQ for the changes to take effect. To be honest, I had to REBOOT the Windows9x machine in order for things to work right but some users might say otherwise. So.. try it both ways.
*

A user once told me that by simply portforwarding port 4000 to his ICQ machine, it worked perfectly. He reported that EVERYTHING worked fine (even chat, file transfers, etc) WITHOUT re-configuring ICQ from its default settings. Your mileage might vary on this topic but I thought you might like to hear about this alternative configuration.

BUT many users have found that ICQ becomes unreliable. It has been found that ICQ is more reliable with its stock timeout setting (don't enable that ICQ option) and simply change MASQ's timeout to 160 seconds. You can see how to change this timeout in the section called Linux 2.0.x Kernels in Chapter 3 and the section called Linux 2.2.x Kernels in Chapter 3 rulesets. Finally, click on Next and configure ICQ to "Use the following TCP listen ports.." from "2000" to "2020". Now click done.
Now ICQ will tell you that you will have to restart ICQ for the changes to take effect. To be honest, I had to REBOOT the Windows9x machine in order for things to work right but some users might say otherwise. So.. try it both ways.
• A user once told me that by simply portforwarding port 4000 to his ICQ machine, it worked perfectly. He reported that EVERYTHING worked fine (even chat, file transfers, etc) WITHOUT re-configuring ICQ from its default settings. Your mileage might vary on this topic but I thought you might like to hear about this alternative configuration. bron
Ik neem aan dat je in ieder geval de bovenste tip al geprobeerd hebt. De onderste kan ik me niet goed voorstellen, maar je weet nooit :).

Leven is het meervoud van lef | In order to make an apple pie from scratch, you must first create the universe.