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
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