Questions tagged [port-forwarding]

port-forwarding on firewall or via SSH

Filter by
Sorted by
Tagged with
0 votes
1 answer
41 views

iptables port forwarding to another webserver port

Is it possible to forward a port to a port belonging to another webserver? I have an ec2 instance which is capable to connect to a mysql db living on another machine not belonging to the same network....
peppe's user avatar
  • 1
2 votes
3 answers
4k views

port forwarding with rules on ubuntu 18.04

I'm having a VM where port 80 is consumed by apache tomcat (host.nvoids.com). and I'm having apache2 php running at port 8020 which is a wordpress blog (host.nvoids.com:8020) I want when somebody ...
Pradyut Bhattacharya's user avatar
-1 votes
2 answers
5k views

is it possible to host multiple server that have different IPs on the same port such as 80? [closed]

I am trying to setup multiple website domains, but from different servers and because they are different servers they have different IPs, I am wondering if I could port forward each domain to 80, so ...
BadWo1f's user avatar
  • 21
0 votes
1 answer
882 views

Can UFW do port forwarding of IPv4 to IPv6

I have an http/https server which is IPv6 only. To allow people who have IPv4 only to reach it I would like to use a server in the middle with IPv4 address and forward traffic to the IPv6 server from ...
ab0032's user avatar
  • 43
0 votes
1 answer
287 views

Do ports change for every request? Are Ip ports are different from system ports?

A typical ip address has >65k ports then again a system that runs localhost offline has port which sometimes face conflicts. Am very under-read in this area please give some light. Pardon my English. ...
saul's user avatar
  • 1
0 votes
0 answers
307 views

ip port forward iptables

I built a cluster of computers, they are on the LAN network behind another computer which serves as a router. I want to do a forward from external port on the router to port 22 on the submit node on ...
Addman's user avatar
  • 109
1 vote
0 answers
238 views

How to set up multiple port forwarding rules?

I have recently set up multiple Squid proxy servers on my Rasp Pi 3 using Docker. I opened ports on my router, one server is accessible from port 3134 and the other 3135, however, this requires 2 ...
David Rosen's user avatar
0 votes
2 answers
808 views

Linux blocking port-forwarded connection to SSH service

I'm trying to connect to my computer's SSH service from outside my network (Internet). The router is a Sagemcom 5655. In the router I configured port-forwarding as I did many times before in my life, ...
Eduardo G.R.'s user avatar
-1 votes
1 answer
3k views

Apache2 not working with port 80 but working on port 8000 in Proxmox (same configuration)

Some months ago I hired a Kimsufi server, I tried to forward ports without luck. I abandon the server, some days ago I started to reconfigure everything again, but I'm having still problems. I ...
z3nth10n's user avatar
  • 119
0 votes
1 answer
50 views

Forward ports from serverA to serverC via server B but allow serverB to communicate as a separated server

The following case: ServerA has no open ports. IP 1.1.1.1. It can see ServerB. ServerB has open ports 1000, 2000. IP 2.2.2.2. It can only see ServerC. ServerC has open ports 1000, 2000. IP 3.3.3.3. ...
Fogus's user avatar
  • 101
1 vote
0 answers
891 views

How to forward UDP traffic on same eth0 interface from one to another port

I am trying to follow some guidelines to forward UDP traffic, but it seems that nothing works. I am having a Syslog server pushing logs to my Logstash instance (yes, EC2) on port 514. As this is a ...
Alan Kis's user avatar
  • 161
0 votes
0 answers
1k views

Forward port to OpenVpn client with static IP

I have running OpenVpn server on my router Asus RT-AC58U. The router has public static IP 82.119.97.206 On the OpenVpn server I have setup two clients with static ip: 10.8.0.10 - my laptop (Ubuntu 19....
Iwaneez's user avatar
  • 63
1 vote
1 answer
2k views

Firewall only allows port 443 traffic, but have multiple servers in the backend listening on different ports

I am a software dev by trade, and I think I might be missing a big feature here that I am not familiarise with. In my developer PC, I have an app that uses a website hosted by my local IIS server on ...
Harvey Lin's user avatar
0 votes
1 answer
226 views

ssh forward 2 ports in one command. Is it possible?

I currently use ssh to forward ports to my localhost. I have an application that requires two ports. I can currently get it working if I run two separate ssh commands. But I was wondering if it ...
Cade Nelson's user avatar
0 votes
3 answers
133 views

Centos Will No Longer Forward Port 80

I have been using iptables to do port forwarding since it's inception. For some reason after a reboot the ability to forward port 80 on a Centos server is broken. I even updated from Centos 7.7 to 8....
Robert A. Ober's user avatar
3 votes
3 answers
5k views

Can't port forward with iptables KVM NAT

I have a debian 10 host and I am running a debian 10 guest using NAT. I am using libvirt/KVM/QEMU host public ip: x.x.x.x guest ip: 192.168.122.99 I am trying to forward port 22221 to port 22 in the ...
rmauter's user avatar
  • 31
0 votes
1 answer
196 views

Router reboots when doing port-scanning [closed]

I'm facing a problem similar to Router reboots when using Nmap. To sum up, I'm doing port-scanning and once the rate is high enough the router reboots (just like described in the thread above using ...
ezegoing's user avatar
  • 103
0 votes
2 answers
309 views

is it safe to port forward SQL server to whitelisted IP

I need to access an SQL server behind a router from an AWS EC2 instance. Is it reasonably safe to open a port on the router if I am white listing the IP of the EC2 instance? If there is a best ...
Eric Alwine's user avatar
1 vote
0 answers
496 views

How to use sshuttle to connect to an aws service via two hops?

I have following situation: Host A: My Machine Host B: AWS Bastion Host Host C: EC2 instance in a AWS VPC with a private IP only Host D: AWS Elasticsearch Service, accessible only from Host C via ...
Ira Re's user avatar
  • 111
0 votes
2 answers
684 views

Forward any request to another server on specific port

Let's assume 3 servers. Server A streams live video on port 88. Server B fetches 10 live streams from Server A. Connection speed between Server A -> Server B is 20mbps. Server C can connect to ...
user9066046's user avatar
0 votes
2 answers
4k views

Typical port forwarding with nftables example

I want to connect to a virtual VM hosted by the server 1.2.3.4 using ssh. The IP of the VM is 10.10.10.100. "nft list ruleset" prints: table inet filter { chain input { type filter hook ...
Hamatoma's user avatar
0 votes
1 answer
62 views

Force Redirection from http to https nginx to a specific port

I've a service running in 9000 port and setup ssl using letsencrypt. I would like to forward all request from http to https. http://demo.mydomain.com -> https://demo.mydomain.com http://www.demo....
Vivek's user avatar
  • 93
0 votes
1 answer
213 views

Way to forward remote internal network ip and port to same ip and port on local mac

For development reasons I want to connect my local machine (macos) to a remote private network of a kafka/zookeeper cluster. When I do port forwarding with ssh [email protected] -N -L 10.0.0.8:...
Jurudocs's user avatar
  • 349
-1 votes
1 answer
2k views

nmap - how to find port forwarding to SSH

I have a firewall that forwards port 2222 to a Linux machine running SSH server on port 2222. The problem is I do not know what the IP of the firewall is. So I want to scan the subnet to tell me ...
stone.212's user avatar
  • 347
2 votes
3 answers
6k views

Using a multi-hop ssh tunnel to reach a database

We have some remoteservers which are only accessible through a jumphost. On this remoteservers run vms which host the databases i want to reach locally. Each box is a linux system. I have only su ...
elmo26's user avatar
  • 41
0 votes
0 answers
90 views

How can I forward port from two multicast addreses with the same port using iptables on debian?

I wrote a multithread program in Python, that analyses traffic from two multicast addresses with the same port, however it looks like my threads don't distinguish from where are datagram's coming. ...
Jędrzej Kieruj's user avatar
0 votes
1 answer
78 views

Port forward MZ to DMZ to public

We need to forward port 993 from my MZ server to DMZ server to Mail Server . Actually port 993 are open from my DMZ server to mail server . Application is running on MZ and login to mail server script ...
Nishant Chourasia's user avatar
2 votes
1 answer
5k views

Port Forward - KVM host forward port 23 to port 22 of a guest running an ssh service

I have a KVM server (host) with multiple virtual machines (guests). My goal is my host forward port 23 to port 22 of a guest running an ssh service. Command example... ssh root@[HOST_IP] -p 23 ...
Eduardo Lucio's user avatar
0 votes
2 answers
687 views

libvirt Port Forwarding? (Wiki Guide Non-functional)

I have setup a hook at /etc/libvirt/hooks/qemu with permissions of 755 owned by 0:0 with the following contents: #!/bin/bash if [ "${1}" = "virtualmachine" ]; then GUEST_IP=192.168.122.2 ...
gudenau's user avatar
  • 131
1 vote
1 answer
327 views

Retrieving a letsencrypt certificate for a mail server

I have two (virtual) hosts running behind a firewall. One is a webserver, the other a mailserver. The appropriate ports of my single public IPv4 address are forwarded at the firewall to the hosts. ...
mat's user avatar
  • 548
0 votes
0 answers
4k views

Mikrotik hEX port forwarding doesn't works

I have an hEX Mikrotik router, factory default settings, latest firmware. By default it comes with eth2 to eth5 bridged, and eth1 as the "WAN" port, plus a few Firewall rules. By default the bridged ...
TheStack's user avatar
  • 101
0 votes
0 answers
442 views

OpenVPN: forward traffic on specific ports to client

I have an OpenVPN server on a DigitalOcean machine, and several clients connecting to it, including a Synology NAS with a mail server. I would like to use the VPN server to forward all incoming mail ...
Sebastien's user avatar
  • 101
0 votes
1 answer
2k views

Failed For Listen Port 80 (Serveo and SSH)

I am trying to create a very simple one page website hosted on my PC. I have used Python and SimpleHTTPServer to host the server on localhost:8080 and am now trying to forward traffic from a domain to ...
Mihkel's user avatar
  • 101
0 votes
1 answer
965 views

Router (Synology) translates external IP address to internal

My previous CISCO router (from my ISP) has been changed to Bridged mode, because I wanted to use mine (Synology). Afterwards the internet connection and the subnet worked fine, but my (DDNS) FQDN (...
StrictLine's user avatar
0 votes
1 answer
257 views

CentOS - Forwarding all ports except one

It is possible to forward all ports (TCP/UDP) in a CentOS server except by the ssh/sftp port (TCP port 22). If it is possible how can I do this? I thought in something using "FirewallD". Thank you! ...
Eduardo Lucio's user avatar
3 votes
1 answer
2k views

SSH LocalForward a unix socket to a windows tcp port using .ssh/config

I have a development server running docker, and generally connect to it from Windows 10 like this: > ssh -V OpenSSH_for_Windows_7.6p1, LibreSSL 2.6.4 > ssh -NL localhost:23750:/var/run/docker....
mseddon's user avatar
  • 131
0 votes
1 answer
342 views

SSH: forward port on intermediate machine to local network

I have a master that is reachable from the outside on a static IP (1.2.3.4). From the master, I can connect to a slave that resides in a local network (10.0.0.1). Currently, my .ssh/config looks like ...
b1931542's user avatar
0 votes
1 answer
2k views

HAProxy as a reverse proxy for backend already ssl enabled and SSL terminator for a backend exposed in port 80

I have 4 servers: proxy_server, $BK_SERVER_001, $BK_SERVER_002 and $BK_SERVER_003 The "proxy_server" only has an HAProxy enabled service with this configuration: (please look at the rows marked ...
Goose's user avatar
  • 3
0 votes
0 answers
486 views

How should I load balance large port range for high availablity?

I have a service which publishes individual services on different ports via consul and fabio. I have a pair of these fabio internal load balancers. They both have the complete set of valid open ...
Chris Schafer's user avatar
6 votes
2 answers
4k views

Port forwarding test possible within LAN? Mikrotik Router

I set up port forwarding on a Mikrotik router, but the router OS (v6.39.2) seems a lot more complicated than the standard off-the-shelf router interface I am used to. I followed the instructions from ...
evsc's user avatar
  • 161
11 votes
1 answer
6k views

SSH: What's the difference between -L and -R?

I looked at the ssh manual (man ssh) and read the definitions for -L and -R option but don't quite understand the difference. Both seem capable of forwarding requests to a desired host and port. Can ...
user526657's user avatar
1 vote
1 answer
1k views

Strange behaviour on iptable with nat AND port forwarding

I have several dedicated servers hosted in several datacenters, and I want to migrate mail (pop3, imap, smtp and their TLS/SSL variants) services from one server to another. For that purpose, I ...
GingkoFr's user avatar
0 votes
1 answer
2k views

OpenVPN over stunnel not working when forwarded through router but working internally [closed]

I'm trying to set up OpenVPN over stunnel on my personal server. openvpn is in tcp and connects fine outside of stunnel, even when connecting through a port forward on the router. OpenVPN wrapped ...
mAndroid's user avatar
  • 103
0 votes
1 answer
2k views

LXC: Forward container's localhost traffic to host's localhost

I have service A running on the host and binding to port 127.0.0.1:7800. I have service B running inside my LXC container which want to connect to service A via 127.0.0.1:7800 but currently can't. ...
gavenant's user avatar
  • 123
2 votes
1 answer
595 views

Iptables port forwarding on Ubuntu (Docker)

I have an Ubuntu Docker image running in Kubernetes and I'm trying to set up port forwarding to route requests coming in on port 5000 to a different destination and port (10.30.8.191:443). I installed ...
PoweredByOrange's user avatar
0 votes
1 answer
408 views

Can't forward to port 8787

We have an instance of R studio running on port 8787 under Ubuntu 16.04.5 LTS. We can access it normally from work using: server_url:8787 When not at work, after connecting to work VPN, we normally ...
Ali Hassaine's user avatar
1 vote
1 answer
1k views

Set up public ip on server [closed]

I am not quite sure if this should belong here but how do I add public ip to my server? I wanted to launch a system in Server B live to internet. The problem is no physical connection is linked ...
marvin castro's user avatar
-1 votes
1 answer
2k views

Do I need to setup a Docker network to expose container to the Internet, and if so, how to do it?

Summary I mounted a local Jenkins Build Server in a local Docker Container and exposed ports 8080 both from the host to the Jenkins container. I want to test the integration of Jenkins with Azure ...
Will Marcouiller's user avatar
0 votes
0 answers
409 views

Forward from port 80 to my proxy server wont work

I have a raspberry configured as a little server for doing some networking training, this is my current system version Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/...
Leonardo Bassi's user avatar
2 votes
0 answers
161 views

Partially obstructed communication when publishing Docker container on different host port

I have a game server running inside a Docker container that listens on UDP port 1111 (EXPOSE 1111/udp). When I publish this server on the same port on the host (-p 1111:1111/udp) everything works as ...
Thomas's user avatar
  • 131

1
5 6
7
8 9
29