Skip to main content

All Questions

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

Port Forward for LAN

I bought a server and have Ubuntu 22.04 installed. When I run various Github projects like Text Generation Webui, Automatic1111 Stable Diffusion, etc., how do I forward the port to access it from my ...
rbur0425's user avatar
  • 103
1 vote
0 answers
123 views

iptables show ACCEPT but connection got refused

I have a Django application accessible at port 8080. My current iptables is set Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy DROP) ...
NicoCaldo's user avatar
  • 163
0 votes
0 answers
530 views

Share two network interfaces on linux

I have a Linux PC (ubuntu 22.04) with a network layout as below: Internet <-> Router <-> PC <-> edge device <-> Switch <-> APs <-> devices And with two Lan ...
Firouziam's user avatar
  • 787
0 votes
0 answers
288 views

Port forwarding in Ubuntu 20.04 causes pings to fail

I'm trying to forward ssh port to connect my servers together. Something like this: Local Machine === (ssh) ===> Server A === (ssh) ===> Server B My Servers aren't in a same location. They're ...
Mateo Garcia's user avatar
2 votes
1 answer
3k views

iptables - Port forwarding with keeping source IP

I have a Ubuntu Server with two interfaces: enp1s0 and ham0 (private network). In interface ham0 my IP-address is 25.70.228.164. Another machine in this network has IP-address 25.11.1.253. I tried to ...
Semyon Bayandin's user avatar
0 votes
1 answer
387 views

SMTP IP forwarding to another machine

Apologies if this is a silly mistake this is the first time ive had to set up port forwarding. I have two machines I have one machine set up as a DMZ (192.168.0.67) when all traffic inbound will hit ...
Donald's user avatar
  • 101
0 votes
1 answer
5k views

How to port forward my ubuntu 22.04 using iptables

Do you know how to gives iptables rules to my machine in order to allow trafic from my public interfaces(wlp3s0) to my private interfaces(lo). Kinda with this topology: 192.168.1.1:80 => 127.0.0.1:...
user avatar
-1 votes
1 answer
1k views

How to redirection traffic between interfaces on ubuntu 18.04

i have server that has two interfaces (enp1s0 : 192.168.1.10 and enp2s0 : 10.20.30.30), enp1s0 is public interface that we can connect to server with it and enp2s0 is private and isolate interface. on ...
arminbiklari's user avatar
3 votes
2 answers
3k views

Port Forwarding with iptables is not working

I have two servers: server 1 with IP address 10.8.0.1 server 2 with IP address 10.8.0.6 I want server 2 work as a proxy for a website that is hosted on server 1. So I use the following commands: sudo ...
Admia's user avatar
  • 155
0 votes
0 answers
891 views

Listening port's with service name

I'm looping in listening ports and when looping I want to get the exact service name of the ports for further activity. So how can I get the service name of the ports.
lee's user avatar
  • 1
-1 votes
1 answer
5k views

Ubuntu 20.04 gateway, iptables NAT and port forwarding

i am in a maze, i try in vain to setup the rules to be able to acces from internet my internal web server (192.168.12.10). at home, i have an Ubuntu 20.04 gateway (192.168.12.1) with two interfaces : ...
clorant's user avatar
2 votes
0 answers
1k views

Port forwarding In Ubuntu 20.04 with minikube

I'm trying to use minikube in my server. I've finished setting about kubernetes and I can get access to 192.168.49.2 which I got from minikube ip in server ssh (curl). Let's say my server's public ip ...
buttercrab's user avatar
0 votes
1 answer
514 views

What do these iptable rules mean?

These: sudo iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE sudo iptables -A FORWARD -i tun0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT sudo iptables -A FORWARD -i wlan0 -o tun0 -j ...
cream_pi's user avatar
0 votes
1 answer
417 views

How to forward ports for X11 on Proxmox to a MV

Well, I read that I needed to open ports 6000-6063 and also 117 (UDP). I tried it without luck: post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 6000:6063 -j DNAT --to 192.168.x.xxx:...
z3nth10n's user avatar
  • 111
0 votes
0 answers
122 views

Port 80 forwarding on a broadband connection

We have an Ubuntu 20.04 server that connected to a broadband on enp1s0. We also have a security camera connected to the server on iface enp2s0. The camera has a gateway on 192.168.240.1 and serves its ...
paco.'s user avatar
  • 1
1 vote
1 answer
572 views

Network routing and port forwarding problem

I have 2 networks (graph in link below) A: 10.0.0.0/24 B: 192.168.1.0/24 In network A, all devices are connected via a switch. Some devices provide certain services such as ssh or access to a database ...
Wojciech Stańczuk's user avatar
0 votes
1 answer
4k views

Failed to connect to 127.0.0.1 port 80: Connection refused

I am unable to connect to port 80 on an ec2 VM. I even tried this below command. sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT But no change in the response. My security group inbound rules also ...
ts178's user avatar
  • 101
0 votes
0 answers
412 views

How to open port in client side in windows using my own pptp vpn server on linux?

I had been setup my own pptpd server in my vultr ubuntu server and i connect on it using my client built in in windows and i success to access the internet and when i check my ip i see the vps ip ...
Obada Diab's user avatar
0 votes
1 answer
2k views

Ubuntu 20.04 - Port forwarding with iptables causing "temporary failure in name resolution" when using sudo

I'm working on a project where my Ubuntu machine port forwards external connections to a second computer on LAN running a game server. I found a few tutorials online on how to do this and ended up ...
fruitypig's user avatar
0 votes
0 answers
90 views

Port forwarding with 18.04.4 LTS

i have 1 pc running ubuntu 18.04.4 LTS. this pc has 2 network cards: enp37s0 (onboard gigabit nic) and enp38s0 (additional pcie gbit nic). enp37s0 is connected DIRECTLY to the internet by cable ...
Dario Buonpensiere's user avatar
0 votes
0 answers
73 views

Acces my ssh server from one of my internal LAN

I have attached a picture with my logical scheme of my network to understand better what I'm trying to say. I have 2 routers, one it's from my ISP, let's say R1, and the second one it's a laptop with ...
Alex's user avatar
  • 1
0 votes
0 answers
2k views

How to forward all local SMTP requests on port 25 to a remote SMTP server on port 587

I'm trying to solve a problem with a bulky program that is, for some reason, only sending email over port 25, even when port 587 is specified. In this answer, someone suggests using the windows ...
nick carraway's user avatar
0 votes
1 answer
126 views

How to forward web port without losing http access?

I have configures NextCloudPi on a Raspberry Pi at home and it works quite well. However, the NAT config with the adsl modem is instable. Therefore, I configured a Tinc VPN server on DigitalOcean (the ...
vmalep's user avatar
  • 659
3 votes
0 answers
185 views

Webpage can not get access from the world!

I have installed a fresh Apache with a fresh Ubuntu server. I did not make any changes to my server yet. The default Apache website is visible from other PCs inside the private network. The ports 80 ...
MJC's user avatar
  • 31
1 vote
0 answers
767 views

Port Forwarding between 2 hosts in VPN

I'm having some problems while trying to set port forwarding rules on a Ubuntu machine. I'll explain my situation.. I have a Raspberry in my local home's network and I have a webserver installed on ...
Samuele Allegranza's user avatar
0 votes
1 answer
489 views

Forwarding Traffic From One Port to Another and Vice Versa

The goal: Have process A send messages to process B and vice versa via TCP (I'm using ROSBridge). The problem: Only one process can use a port at a time The solution (?): Have process A use port ...
CodeMonkey's user avatar
1 vote
2 answers
6k views

KVM NAT Port-Forwarding

i have Ubuntu 18.04 with KVM and a Debian VM. The Debian VM should accept the port 8834 from outside. Can anyone explain me how it should works? Thanks
Fabs 's user avatar
  • 41
4 votes
1 answer
3k views

How can I put speed limits on ports?

I have UFW enabled, so the solution should not interfere with it. It should also work after reboot. I currently know these commands which limit the data usage of ports: sudo iptables -I OUTPUT -p ...
HappyFace's user avatar
  • 325
0 votes
0 answers
3k views

Port forwarding from OpenVPN Client to Public Internet

I need to forward port 44444 of my VPN client to the public internet with my public IP on port 44444, how i can do this? The VPN Server is mine and I have root access. Example how i can do this? ...
ewwew ewewe's user avatar
0 votes
0 answers
138 views

Ubuntu 14.04: possible port-forwarding issue, OpenVPN closing/blocking ports?

My server is setup with eth0 (192.168.1.100) and wlan0 AP (192.168.5.1). I set my BT router to forward TCP and UDP ports 8080 and 8443 (http and https ports user-specified in Subsonic server config ...
orion_134's user avatar
0 votes
1 answer
2k views

connection refused on port 4000 in ubuntu14.04? [closed]

I tried to telnet (telnet 10.12.1.14 4000 or nc -zv 10.12.1.14 4000 )on port 4000 and giving the result as follows. root@cwl2:~# nc -zv 10.12.1.14 4000 nc: connect to 10.12.1.14 port 4000 (tcp) ...
Vikram Pal's user avatar
2 votes
2 answers
1k views

Port is closed on Ubuntu 16.04

I am using http://www.canyouseeme.org and http://www.yougetsignal.com/tools/open-ports/ to find out whether my port is opened for connection or not. I am not able to seed the torrents. It keeps ...
JBaba's user avatar
  • 23
4 votes
1 answer
2k views

How to forward/route eth0 to specified as0t0 client? (Internet to VPNetwork's Client)

I have a VPN server which connected to the internet over eth0. And VPNetwork's device is as0t0/as0t1. I have a specified VPN Client which i want to reach it over internet over VPN Server's public ...
Muhammet Ali AKBAY's user avatar
0 votes
1 answer
899 views

Cant connect an ESXI host behind an ubuntu NATusing Vsphere

I have 2 NIC's on ubuntu ; eth1 (pci-e based net. card) > WAN (router) and eth0 (onboard) > server (onboard) (no cross cable) so what I want is to access both ubuntu (vnc and ssh) and esxi server (...
xDeathwing's user avatar
0 votes
1 answer
6k views

Port forwarding with DNAT not working

I want to forward my local port 2221 to a remote machine (192.168.2.100), where ssh listens on port 2222. Connecting to the remote machine works: ssh -p 2222 192.168.2.100 [email protected]'s ...
DoRe's user avatar
  • 21
0 votes
0 answers
194 views

How to change/forward IP:Port mapping

I have a application that binds to 127.0.0.1:9000. I can't access from other nodes on the network due to this. I want it to appear as my-machine-name:9000 instead. How can I do this in Ubuntu. ...
nikk's user avatar
  • 101
13 votes
4 answers
62k views

iptables forward port error - No chain/target/match by that name

I am trying to configure iptables on my Ubuntu 12.04 LTS server to forward port 443 to 8443. But when I run this command: sudo iptables -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 8443 ...
Roy Hinkley's user avatar
0 votes
1 answer
794 views

Forwarding VPN clients to internet

I have following configuration. OpenVPN server on a cloud(Ubuntu 14.04) with static IP( example 50.60.70.80 on eth0). Linux and Windows clients are successfully connected to VPN (VPN static IP's - ...
KostovV's user avatar
0 votes
1 answer
184 views

Ubuntu server - port forwarding

I need to redirect from http port 80 to elsewhere to specific page, which running on port 9090/somepage. In short: Need redirect x.x.x.x:80 -> x.x.x.x:9090/page I tried to do by command iptable, ...
user4362081's user avatar
0 votes
1 answer
1k views

Ubuntu on vagrant and iptables

I have an ubuntu desktop 14.04 running on a vagrant VM (virtualbox). I am trying to forward port 25 to port 2525 and I have executed the following commands: sudo sysctl net.ipv4.ip_forward=1 sudo ...
Marco Altieri's user avatar
0 votes
1 answer
135 views

DNAT redirecting to specifc port is not working

I want to redirect ssh by port using DNAT, and i do try to ssh it through the command > username@IP_ADDRESS:10003, and I got this message: ssh: Could not resolve hostname IP_ADDRESS:10003: Name or ...
Adam's user avatar
  • 329
6 votes
1 answer
8k views

Port forwarding between bridged interfaces

So I have a bunch of bridge interfaces bound with my main ethernet device (em1, blame HP). These serve various LXC containers I have running on my server and easily allows me to access them from other ...
Oli's user avatar
  • 295k
2 votes
1 answer
3k views

NAT port forwarding using iptable doesn't work

I have a server with Ubuntu Server and a Xubuntu virtual machine on it, virtualization software is virt-manager. Ubuntu Server IP: 172.16.63.140 Xubuntu Virtual Machine IP: 192.168.122.4 I can do ...
Luca's user avatar
  • 221
1 vote
2 answers
2k views

Apache 2.4 Webserver not Publicly Accessible

I am trying to setup a simple web server, and have installed a LAMP package to get started (Apache 2.4). I have a simple index.php page that provides current server stats. I am able to access it ...
Maxattax's user avatar
  • 401
0 votes
1 answer
3k views

iptables set-mark doesn't work

My machine has two network interfaces, one is wired (eth0) and the other one is wireless (wlan0). The wired one cannot connect to any external NTP server because there is a firewall outside. The ...
hebothu's user avatar
0 votes
3 answers
416 views

Port Forwarding from domain1.com:25565 to 40000 and from domain2.com:25565 to 30000

I have a Server running on port 30.000 and port 40.000 and if someone acess domain1.com:25565 he should connect to the local port 40.000 and if he connects over domain2.com:25565 he should connect ...
mkg20001's user avatar
  • 103
1 vote
0 answers
7k views

how to open a port under Ipv4 instead of Ipv6

How I can open a port under Ipv4 instead of Ipv6 on ubuntu tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN - tcp 0 0 127.0.1.1:53 0.0....
Nadya Nux's user avatar
  • 141
2 votes
0 answers
2k views

Port redirection for a specific (dynamic) IP using iptables script

What I want: Incoming TCP and UDP connections on port 900 from the resolving IP address of myip.dyndns.org (dynamic IP) should redirect to port 5050 on the local machine. All other IP addresses ...
viriol's user avatar
  • 21
1 vote
0 answers
746 views

Port forwarding out multiple VLAN interfaces that have same IP address

So I have an Ubuntu machine with multiple VLAN on an interface eth1 and each VLAN has the same IP address (172.16.0.2). I need to be able to simultaneously telnet into a rack of devices that are also ...
user2692502's user avatar
1 vote
1 answer
2k views

Dnat prerouting does not work on Ubuntu 14.04 [closed]

I've got a Ubuntu 14.04 server used as firewall, router, dhcp, dns and proxy. Everything works properly from inside to the internet, but the forwarding from outside to the inside network doesn't work. ...
novaisjp's user avatar