Skip to main content

Questions tagged [network-namespaces]

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

I have an application and want to start a firefox where all network traffic from firefox goes through the application which does magic (doesn't really matter what it does). The idea I have is to open ...
Goswin von Brederlow's user avatar
0 votes
0 answers
59 views

I have a physical network with several VLANs. One of my computers (my main workstation) is connected to two different VLANs on this network, one tagged, the other not. I have successfully set this ...
Omnifarious's user avatar
  • 1,412
1 vote
0 answers
62 views

I have here a process from which I do not want to access the internet, except from my company VPN. My company VPN is using a tun device. If the VPN is not active or does not work, the expected ...
peterh's user avatar
  • 10.5k
2 votes
1 answer
740 views

I'm using a fresh minimal Ubuntu server 24.04.1 LTS install. I run these commands as root to set up networking and do some experiments: If you have seen this post, it's the same setup but with the ip ...
Adrian's user avatar
  • 261
1 vote
0 answers
55 views

I'm trying to run socat forward ttyACM0 into UDP. It works with command. socat UDP-LISTEN:14550,fork,reuseaddr FILE:/dev/ttyACM0,b57600,raw Problem is, I need to access socat via ip address, which is ...
eXulW0lf's user avatar
1 vote
0 answers
84 views

This question hints that it is possible to create a veth (which normally requires root) from inside a user and network namespace, and indeed: user@host$ unshare --user --net -r =bash root@namespace# ...
F.X.'s user avatar
  • 361
0 votes
1 answer
205 views

Hello I have a simple setup for explanation purposes created with following scripts:` env.sh CON1="con1" CON2="con2" NODE_IP="10.0.0.20" TUNNEL_IP="172.16.1.100&...
TheCoolDrop's user avatar
0 votes
1 answer
276 views

I have an AppImage which I need to run 3 instances of, concurrently. Each instance will use it's own profile (Home directory). That's all very easy: HOME=/home/user/home AppName.appimage Now the ...
rogerwhite's user avatar
0 votes
0 answers
114 views

The goal is very simple: anything sent to pair1, as outgoing packet, should appear on pair0 as an incoming packet and vice versa. I am thinking on a layer3-only, virtual interface now. tun could do ...
peterh's user avatar
  • 10.5k
2 votes
0 answers
271 views

I am using unshare to create a network namespace: unshare -rn bash I already have the a working setup with veth-interfaces as described in this guide: https://josephmuia.ca/2018-05-16-net-namespaces-...
Aykut's user avatar
  • 21
4 votes
1 answer
2k views

I'm running Arch Linux on a laptop. What I want to achieve: Multiple users When each user logs in on a tty (which could be while another user is logged in on another tty---they're all me), they're in ...
user747267's user avatar
2 votes
1 answer
200 views

I am having a dumb, and I am hoping you lovely people can jumpstart my brain. I am running a service in a local network namespace. The namespace looks like this: # ip -n ns1 addr 1: lo: <LOOPBACK,...
larsks's user avatar
  • 38.5k
2 votes
0 answers
145 views

I sometimes run my browser in a VPN netns, like this: sudo ip netns exec vpnns sudo -u myuser google-chrome & This works great, except sometimes it seems that the netns "steals" the ...
Thomas's user avatar
  • 278
1 vote
0 answers
329 views

I'm running fedora 36 using firewalld as my firewall. I set up a network namespace called "wireguard". It contains the interface wg0 which connects to Mullvad VPN. I set it up like this: ip ...
minamikoarikui's user avatar
0 votes
0 answers
240 views

I have two VMs VM-A & VM-B connected via IPIP Tunnel in a namespace. I want the application in VM-B which is under namespace to be accessed from the public IP of VM-C. Can someone help me how can ...
ph3ro's user avatar
  • 378
0 votes
1 answer
962 views

Hey guys this is probably just something stupid I'm missing, but I'm having trouble setting up a net namespace to use for my VPN. The weird part is that this script/setup was working, and has suddenly ...
samikool's user avatar
0 votes
0 answers
740 views

I'm currently using subprocess.run(["socat", f"udp-listen:{_to},fork,reuseaddr,bind=127.0.0.1", f"""exec:'sudo ip netns exec {netns} socat STDIO "UDP-connect:...
DrownedSuccess's user avatar
1 vote
1 answer
496 views

I've run sudo sysctl -w net.ipv4.ip_unprivileged_port_start=1. However, sudo ip netns exec myvpn unshare -r python -m http.server -b 127.0.0.1 2 does not work. Strangely enough, this does: sudo ip ...
DrownedSuccess's user avatar
2 votes
1 answer
2k views

I am trying to use iptables to packet mark packets of a certain source/destination IP in the mangle table on a given host. The packets are later forwarded to a particular network namespace on the same ...
Alexander. C's user avatar
2 votes
0 answers
627 views

Two containers talking to each other on overlay network with high traffic (connection frequency) occasionally got connection lag almost exact multiple of 1s. It doesn't matter whether it is same host ...
DevilaN's user avatar
  • 2,146
0 votes
1 answer
1k views

I have two Virtual Machnes (VM) in Virtualbox connected with internal network. On the first one I have network namespace named n0. I want to connect this namespace to network interface and finally ...
Spams's user avatar
  • 3
0 votes
0 answers
277 views

I am using Ubuntu Mate: $ echo $DESKTOP_SESSION; cat /etc/issue; uname -a; mate Ubuntu 20.04.4 LTS \n \l Linux mypc 5.4.0-104-generic #118-Ubuntu SMP Wed Mar 2 19:02:41 UTC 2022 x86_64 x86_64 x86_64 ...
sdaau's user avatar
  • 7,148
0 votes
1 answer
1k views

I created a simple test netns : sudo ip netns add test Then I brought up the lo interface. I'm currently in the home directory of user1, and by executing sudo ip netns exec test ls -la I see all the ...
eric's user avatar
  • 1
5 votes
1 answer
3k views

I have an app I run in a network namespace. This works well. I want to run the app multiple times, in different namespaces. For convenience, I want to bind mount the app's working directory to ...
sea chub's user avatar
  • 215
0 votes
1 answer
1k views

From https://man7.org/linux/man-pages/man1/n.1.html : By default, a new namespace remains in existence only as long as it has at least one member process. A namespace can be made persistent— that ...
Carlos Vazquez's user avatar