All Questions
22
questions
0
votes
0
answers
100
views
UFW on ubuntu virtual router not blocking correct traffics
I have a virtual router running on Ubuntu Server 22.04. The virtual router has two ethernet interfaces enp1s0 and enp2s0. The interface enp1s0 is connected to the external network and the interface ...
0
votes
0
answers
404
views
Ubuntu as router with netplan & dnsmasq - can't reach websites
I have setup Ubuntu 22.04 LTS as a router for the following scenario:
Client (192.168.222.100) <--> Switch <--> Ubuntu Router eth0 (192.168.222.1) <--> Ubuntu Router enx2887ba778049 (...
0
votes
0
answers
130
views
How do I get ssh to start working?
I turn an unused laptop into an Ubuntu server and everything was working great. I connected to it through ssh on my Windows 10 computer and was able to set up and access Nextcloud to upload all my ...
1
vote
1
answer
563
views
How to setup Linux machine to act as a Router
How to setup Linux machine to act as a Router which is responsible for distributing internet traffic to other devices connected to switch. I want to use this scenario in order to assign Ip-based ...
0
votes
0
answers
323
views
Home Router NAT Network configuration Ubuntu 20.04
I have Ubuntu 20.04 desktop and home router and I trying to open ports to have an acces from internet.
Here is interface info
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN ...
1
vote
1
answer
6k
views
Using Ubuntu server 20.04 as router - no internet on clients
I'm trying to setup an Ubuntu box as a small router. It has two NICs and is connected to a switch. I'm following this guide: https://medium.com/@exesse/how-to-make-a-simple-router-gateway-from-ubuntu-...
1
vote
0
answers
200
views
Configuring ubuntu as router
I have a device which sends meter data to its maker site, using the MQTT protocol.
I intend to capture this information, routing it to my ubuntu PC, where I have setup a docker container with RabbitMQ ...
0
votes
1
answer
6k
views
Link-local 169.254.x.x address assigned at boot despite static IP on 20.04 LTS [closed]
I have been struggling to setup my Ubuntu machine as a simple 2-NICs router with NAT, trying to stick to most recent recommended methods, namely netplan for the NICs and ufw for firewall and for ...
0
votes
0
answers
791
views
Ubuntu as IPv6 router
Draw of network is here.
How can I configure Ubuntu server (A) to generate dynamic IP for new end points (like B) but C server should have static IP? (Firewall: A and C server accessible via SSH only ...
0
votes
1
answer
746
views
Cannot properly configure a gateway on Ubuntu 16.04
I'm trying to make a gateway using Ubuntu 16.04, my server has the following nics:
enp4s0 Link encap:Ethernet HWaddr 00:15:c5:f6:c0:36
inet addr:192.168.0.101 Bcast:192.168.0.255 Mask:...
4
votes
1
answer
7k
views
Use iptables as router
I am having the following setup:
client:
192.168.103.55
"router"
192.168.103.30 (eth3), 192.168.102.30 (eth2)
server-1 server-2
192.168.102.21 (eth2) 192....
1
vote
0
answers
180
views
Ubuntu Router - 2 NICs - cannot ping Internet from internal network
I have read many posts on how to configure 2 NICs, but some help would be very appreciated. I am planning to make a router using an Orange Pi R1. I have installed Ubuntu Xenial Server using an image ...
1
vote
0
answers
100
views
Setting Ubuntu server as router can't access internet
Im trying to simulate a network (router, firewall, PCs and server) with several virtual machines running Ubuntu Server. I have followed several tutorials, questions on this froum and so on but I can't ...
2
votes
1
answer
2k
views
Client gets LAN ip but no internet
I've stumbled upon a rather specific problem and I do not have the knowledge to solve it on my own. I've set up a Ubuntu server (16.04.2) which will act as a router. Until now I've configured two ...
0
votes
0
answers
3k
views
iptables and bridging
I have a very simple task but I fail constantly :-(. So here is my simple setup:
I want to build up a router with the interface eth0 connected to the open world on the one side and two intefaces, ...
1
vote
2
answers
2k
views
Forward packets from bonded LAN interface to WAN
I am not able to route packets between the lan side of my ubuntu server and the wan side. I'm looking for some assistance. I have 5 ethernet ports on my server - 1 onboard (eth0, used for wan) and 4 ...
0
votes
0
answers
103
views
Ubuntu running as router blocks VPN
I have a Ubuntu server 16.01 running as my router, I followed this tutorial: https://www.youtube.com/watch?v=KXX5gCi0uTo
everything works fine, every machine gets an IP, I have internet connection ...
4
votes
1
answer
6k
views
Ubuntu as router; redirect traffic from 1 client (LAN) to VPN
I have a Ubuntu 14.04.03 router (iptables). Behind it there is a LAN with laptops, tablets, smart TVs, etc.
I would like to use VPN on my TV, but there is no such option in the TVs software/firmware. ...
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 ...
0
votes
1
answer
3k
views
IPtables command to block specific port for certain ip
I want to block certain services such as ftp, telnet, http for a certain ip address. What command will I execute in order to achieve this. The only command I have tried is
sudo iptables -A INPUT -s ...
2
votes
1
answer
6k
views
How can we make our ubuntu server router as gateway mode to router mode?
based on this sample guide link:
http://ubuntulinux.co.in/blog/ubuntu/nat-configuration-with-iptables-in-ubuntu/
with this code:
iptables –append FORWARD –in-interface eth1 -j ACCEPT
it ...
0
votes
1
answer
649
views
ubuntu as multi port router
If I have an 4 (or more) ethernet port linux box, How to setup it as router to handle 4 class c subnet ? for example, eth0 => 192.168.1.0/24, eth1 => 192.168.2.0/24, eth2 => 192.168.3.0/24, eth3 => ...