Skip to main content

Stack Exchange Network

Stack Exchange network consists of 184 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The 2026 Annual Developer Survey is live— take the Survey today!.

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.

Question list filters

Filter by
Sorted by
Tagged with
Filter by Employee ID
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 ...
raj's user avatar
  • 627 reputation score 627
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 ...
Anton2319's user avatar
  • 323 reputation score 323
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 ...
Robert's user avatar
  • 1 reputation score 1
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 ...
raysefo's user avatar
  • 131 reputation score 131
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 ...
verified_tinker's user avatar
  • 111 reputation score 111
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 ...
MPutak's user avatar
  • 11 reputation score 11
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 ...
Jori Mäntysalo's user avatar
  • 113 reputation score 113
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 ...
thunderbolt's user avatar
  • 3 reputation score 3
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: ...
Douglas B's user avatar
  • 121 reputation score 121
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 ...
Raheel's user avatar
  • 121 reputation score 121
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 -...
simonw's user avatar
  • 35 reputation score 35
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 "...
Avenger's user avatar
  • 181 reputation score 181
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 ...
uhsl_m's user avatar
  • 131 reputation score 131
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 ...
jak kaj's user avatar
  • 1 reputation score 1
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 ...
Tom's user avatar
  • 409 reputation score 409

15 30 50 per page
1
2 3 4 5 6
Morty Proxy This is a proxified and sanitized view of the page, visit original site.