Questions tagged [network-namespace]
A network namespace is an isolated software implementation of a network stack with its own devices, routes and firewall rules within a Linux operating system.
84 questions
Score of 0
0
votes
1 answer
1
answer
30 views
30
views
Issue with PHP and network namespaces
I develop a PHP application that manipulates network namespaces (it is its essential purpose). Almost everything seems to work except one important thing:
When I create a network namespace - or a ...
Score of 1
1
vote
1 answer
1
answer
92 views
92
views
MySQL does not respond to TCP connections from network namespaces in Linux
I'm trying to access my MySQL database server from a Linux network namespace called application, using a veth pair named veth-application-root and veth-application-ns, located in root and in the ...
Score of 0
0
votes
0 answers
0
answers
109 views
109
views
Weird behaviour of network with namespaces
I have a Linux system with three network interfaces. Two interfaces are native (eth0, eth1) on the board and one interface is connected via a USB adapter (enu1).
Because of the application, I needed ...
Score of 3
3
votes
1 answer
1
answer
306 views
306
views
Seeking feedback: Replacing 10 Windows VMs with Linux network namespaces for parallel modem testing (same IP across VLANs)
I’m looking for expert feedback on a lab setup I’m building for high-throughput “modem refurbishment” testing, and whether a Linux network-namespace approach is the right long-term solution.
What I’m ...
Score of 0
0
votes
1 answer
1
answer
362 views
362
views
How can I make packets from a network namespace bypass the WireGuard interface?
I use Mullvad VPN on my host machine (Fedora 41), which sets up a WireGuard interface, wg0-mullvad, and I want traffic from and to the namespace bl to bypass it, with the eventual goal of connecting ...
Score of 1
1
vote
0 answers
0
answers
224 views
224
views
How to correctly route the packets through host and namespaces?
I am trying to route the packets from Client [Host], through namespaces [Demo0 -> Demo1], to Server [Host]. The packets should be routed to tun device 10.0.3.2, from where the black-box process ...
Score of 1
1
vote
2 answers
2
answers
946 views
946
views
Unshare and port forwarding into namespace
I am playing with unshare to better understand containers. As a normal user, is it possible to make a namespace where a program could listen, say, port 123 and on the "main" namespace a port ...
Score of 0
0
votes
1 answer
1
answer
282 views
282
views
Ping from a network namespace to another EC2 instance not working without NAT rule
I have the below setup.
I have setup two EC2 instances. I have added the security group rules on both machine to allow ICMP traffic and both can ping each other.
On one machine I have created two ...
Score of 2
2
votes
2 answers
2
answers
1255 views
1k
views
How is it possible to connect multiple devices using the same IP to a machine with multiple interfaces and have them all work?
Long story short, I am a bit over my head with this task as I'm not incredibly well versed in networking and complicated network config. I have a few ideas, but want to avoid wasting time.
Background:
...
Score of 2
2
votes
0 answers
0
answers
1227 views
1k
views
Unable to make bridge interface UP state
I am just learning networking, Pardon if my question does not give all details, I can provide if needed.
I am trying to learn network namespaces in Linux.
I have created two namespaces red and blue
ip ...
Score of 1
1
vote
0 answers
0
answers
474 views
474
views
network namespace with veth bridge not working - ICMP sent but no reply
I'm attempting to achieve a somewhat standard bridged netns setup with a veth pair, with one end in the ns and the other on the bridge :
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -...
Score of 2
2
votes
1 answer
1
answer
4687 views
5k
views
Use netns to bind programs to specific IP addresses
I have an IP address on my server, say, 192.168.0.3, I want to share in a net namespace, so to run apps there which will only be able to communicate to the internet using that 192.168.0.3.
I can "...
Score of 1
1
vote
1 answer
1
answer
1596 views
2k
views
WireGuard & Network Namespaces
I am trying to set up a VPN gateway with two wireguard interfaces.
One being a gateway accessible from the init namespace, which can forward incoming local packets from eth0.
The second interface is ...
Score of 0
0
votes
1 answer
1
answer
1142 views
1k
views
Ping to/from KVM QEMU VM running in another network namespace
I cannot ping to the default network namespace from a KVM QEMU VM running in a separate network namespace.
Here is my setup:
ip netns add test-ns
# Creating veth
ip link add if-in-ns type veth peer ...
Score of 2
2
votes
1 answer
1
answer
2569 views
3k
views
Using socat to proxy abstract-namespace UNIX sockets across network namespaces
I have a system service that listens for commands on a UNIX domain socket in the abstract namespace. I now need to access this from a process in another network namespace. Because the socket is in ...