External update site through port forwarding

Forum zu aktuellen Geräten der LANCOM Router/Gateway Serie

Moderator: Lancom-Systems Moderatoren

Antworten
Henry
Beiträge: 32
Registriert: 24 Feb 2005, 10:11

External update site through port forwarding

Beitrag von Henry »

Hello,

Our Lancom 1781A router has 3 ethernet connections: Internet, Intranet and Gemnet.
We have a Debian Linux machine in Gemnet (private network) that needs to connect to the public update server deb.debian.org (199.232.150.132) on port 80/443.
For that I have set deb.debian.org on the linux machine to the Gemnet ip-address of the Lancom router (10.250.15.2). In the port forwarding table I have made the following rule:
First port: 80
Last port: 443
Remote site: Gemnet
Intranet address: 199.232.150.132
Map port: 0
Protocol: TCP+UDP
WAN address: 10.250.15.2

On the Debian machine starting a Telnet connection to deb.debian.org on port 443 succeeds.
wget gives the following output:

Code: Alles auswählen

wget -d deb.debian.org:443
DEBUG output created by Wget 1.21 on linux-gnu.

Reading HSTS entries from /root/.wget-hsts
URI encoding = ‘UTF-8’
Converted file name 'index.html' (UTF-8) -> 'index.html' (UTF-8)
--2022-05-09 16:03:11--  http://deb.debian.org:443/
Resolving deb.debian.org (deb.debian.org)... 10.250.15.2
Caching deb.debian.org => 10.250.15.2
Connecting to deb.debian.org (deb.debian.org)|10.250.15.2|:443... connected.
Created socket 3.
Releasing 0x000055ad98886d30 (new refcount 1).

---request begin---
GET / HTTP/1.1
User-Agent: Wget/1.21
Accept: */*
Accept-Encoding: identity
Host: deb.debian.org:443
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response... ^C
The call stops on awaiting the response.
Question is if its possbile do a port forwarding to an internet site using the port forwarding table or maybe my idea is wrong and I have to look for another solution.
I hope it's clear, thanks in advance.

Regards,
Henry
backslash
Moderator
Moderator
Beiträge: 7010
Registriert: 08 Nov 2004, 21:26
Wohnort: Aachen

Re: External update site through port forwarding

Beitrag von backslash »

Hi Henry,

just say: why don't you let the linux connect the update server directly? you have do nothing else than setting the LANCOM as default gateway on the linux...

and no: you can't do a port forwarding on a LAN interface

regards
Backslash
mabe
Beiträge: 5
Registriert: 16 Mai 2022, 19:39

Re: External update site through port forwarding

Beitrag von mabe »

This is a very weird attempt. you cannot port forward the other way round. Local ip cannot be routed to the wan.
Just put your lancom router ip as gateway and connect to the deb server.
Antworten