Questions tagged [loopback]

This tag is for questions about loopback interfaces on network devices. For instance, you want to configure routing on your layer 3 switch and for that you want to configure a loopback interface.

Filter by
Sorted by
Tagged with
1 vote
0 answers
52 views

ssh port forwarding, who has access to localhost?

I've done an ssh remote port forwarding: me@host1.a.com% ssh -R 127.0.0.1:11999:host2.a.com:99 me@host3.b.com My understanding is that this creates a TCP socket on host3.b.com's localhost port 11999. ...
0 votes
0 answers
34 views

Why is my loopback interface losing its address sporadically?

After I upgraded to Fedora Linux 36 from 34 (first to 35) I'm getting an issue I had not faced before. The lo interface is losing its inet address and that's causing issues with programs that make ...
2 votes
1 answer
100 views

ipv6 multicast fails when it should loop back to self

So far I use multicast with ipv4 and it works; all involved computers run linux. I listen on two machines and send on one of those two (in a separate terminal). In the below example 'Hello 1' is ...
  • 23
0 votes
0 answers
135 views

Can systemd-resolved provide DNS service to multiple network namespaces?

Can systemd-resolved provide DNS service to multiple network namespaces? If yes, then how? Running on Ubuntu 22.04, I've created a network namespace named foo. I've created and configured an ipvlan ...
  • 1,386
4 votes
1 answer
117 views

Why does tc-netem on loopback also affects other interfaces?

I'm trying to modify the network behaviour of my server(s), to simulate external/WAN connection behaviours (what ever that means). After doing tc qdisc add dev lo root netem delay 100ms, I can ...
0 votes
0 answers
57 views

How to know which partition is of WIndows C drive without mount, for Basic disks

I have a raw disk from containing Windows partitions which I'm using to create Loop Devices. The loop device details are as below ├─loop5p1 ntfs System Reserved 7CA43E25A43DE1F6 ...
0 votes
0 answers
30 views

Isolate only loopback interface in network namespace

I want to create some network namespaces. However, processes in that namespace can't access other interfaces (eg. can't access 1.300.200.3, which is an IP on my wireguard interface, nor can it access ...
1 vote
0 answers
108 views

My computer resolves itself to 127.0.0.1 instead of its outer ip

I recently installed dnsmasq in two of my machines. The service works all right but the trouble is that when consulted they return only their loopback ip. @Machina ~]$ nslookup continua continua ...
1 vote
0 answers
105 views

dummy_hcd loopback webcam. Impossible?

I've been trying to create a loopback USB Webcam device with the help of dummy_hcd kernel module. Steps I've taken: I load libcomposite via modprobe libcomposite. Then I load dummy_hcd via modprobe ...
  • 131
1 vote
1 answer
2k views

How to make a loopback device writable for normal user?

I setup a loopback device following this guide. The device is OK, but only writable for root. I searched solutions and found some answer such as using fusermount, fstab etc., e.g. this one. I would ...
  • 151
0 votes
0 answers
163 views

How to get my Pi zero audio simultanusly on my hifiberry and on ffmpeg?

Hope you can help me. Got a Pi Zero and Hifiberry Module playing with raspoitify. Speaker sound is fine. My goal is to have the same (raspotify) audio on a ffmpeg stream from that Pi as well. I ...
1 vote
0 answers
743 views

How to filter (rate-limit) traffic through a bridge, using nftables, depending on whether or not the traffic originated locally?

I'd appreciate some help with understanding how traffic filtering in a bridge works, especially for packets / Ethernet frames which originated locally. To explain the problem, I'll shortly describe ...
  • 2,473
0 votes
1 answer
497 views

reordered and duplicated packets when using UDP over loopback interface

We are seeing UDP packets being reordered and duplicated when being sent over lo. We can see this because we're sending MPEG transport streams, which have their own sequence number in their headers, ...
0 votes
0 answers
77 views

Pinging a shut down loopback interface from another system

We have two device R1 and R2 running FreeBSD 9.2, on R1 we have set an ipv4 address for lo1: R1#: sudo ifconfig lo1 192.168.80.80 Then add a route to R1 in R2: R2#: sudo ip r add 192.168.80.80 via ...
  • 205
2 votes
2 answers
835 views

Manipulate filesystem image files without loopback devices?

I am trying to automate the creation of Raspberry Pi images under Docker virtual machine to run it in common CI systems like bitbucket-pipelines. On physical system I am using "template" ...
  • 2,967
-1 votes
1 answer
433 views

i need to display Number of RX packets and the number of TX packets for the loopback interface [closed]

im new to linux and i need to display Number of RX packets and the number of TX packets for the loopback interface. i have tried using ipcongif but for reason i get an error, im using ubuntu for ...
  • 9
2 votes
0 answers
152 views

Virtual ALSA device, sync / intercept volume commands

I have a stereo. I like it, because the sound is nice, but it's not quite sophisticated engineered: It has an internal USB Card soldered on some board, directly outputting audio to the power amp. ...
  • 325
0 votes
1 answer
117 views

IPv4 iptables blocks things, but output policy is ACCEPT, what is the problem with my INPUT DROP chain?

This is my IPv4 iptables list at this moment: Chain INPUT (policy DROP) target prot opt source destination ACCEPT all -- anywhere anywhere ctstate ...
  • 3
1 vote
2 answers
4k views

redirect external request to localhost with iptables

I have a service running on "localhost" address on a certain X port. Unfortunately, I can't change the address to "0.0.0.0" to expose that service. Can I use iptables to internally redirect request ...
  • 131
1 vote
0 answers
1k views

Does the loopback network inside the docker container shares host network loopback?

I recently faced issue with one client application which is running inside a container. This client making network connections to a server residing in the same container over loopback IP 127.0.0.1. ...
1 vote
0 answers
537 views

retransmissions/out-of-order packets with large (~1 MB) writes/reads w/ TCP (SOCK_STREAM) over localhost loopback -- ACK lost

I'm seeing retransmissions/out-of-order packets when using the loopback interface and have been googling for days to try to determine if I should be surprised by this (which I am) or if anyone else is ...
  • 11
0 votes
1 answer
51 views

How Can I Route A WAN IP Request To My Loopback Address And Port?

I have two virtual machines on my laptop. One of virtual machines want to reach an IP address (I have the IP) and I want to route this request to another virtual machine's port. I changed the default ...
  • 1
0 votes
1 answer
107 views

traffic going through lo interface checking every 4 ports

I have noticed that there' s always traffic going on on my loopback interface. It's not a lot but I don't know where it's coming from and I'd like to stop it. There's syn request going from port X to ...
  • 545
0 votes
1 answer
195 views

Understanding Netplan / NIC [closed]

I have a set of 5 static ip addresses. Currently I only have 1 server, so I want to route 2 static IP's to the same server. At the same time I still want the server to be part of the local network. ...
0 votes
1 answer
393 views

Can't ping all the loop back addresses

As we know, the range for loopback addresses is 127.0.0.0 – 127.255.255.255. On my Linux box, I am able to ping all the addresses like 127.0.0.1, 127.0.0.2, 127.0.0.254, etc. (i.e., all addresses from ...
  • 3
0 votes
1 answer
317 views

Traffic into lo vs eth, why might I be seeing only half the traffic on lo compared to eth?

I am forwarding traffic to ports on eth0 and lo. For the same traffic at the same ports and different ports, when I do a tcpdump and count the packets, for time t, I only see about half the number of ...
  • 101
1 vote
0 answers
264 views

IPv6: Why ping to another IPv6 host doesn't work when loopback interface is DOWN

While it is said the only job of lo interface is to test its own connectivity, why doesn't pinging another IPv6 host work when the lo interface is made DOWN. Network configuration: host1(eth0) - ...
  • 11
1 vote
2 answers
52 views

How I manupulate these files in terminal at the same time

I have 139 different tab-delimited .txt files. I want to add a column to each file containing the name of that .txt file and finally attached all .txt files in one file; Let's say I have A.txt, B.txt, ...
  • 171
1 vote
1 answer
1k views

ALSA Loopback not recording system audio on Xubuntu 18.04 in ffmpeg command

I have an ffmpeg script to do my screencasts. I have Debian 9 at the office and Xubuntu 18.04 at home. On those two operating systems, the following works to record system audio and from my microphone....
  • 1,083
1 vote
0 answers
508 views

Alsa snd-aloop: add more loopback subdevices?

I'm currently working on a project on which I need to create multiple audio streams using snd-aloop. The issue is that we reach the max number of substreams easily. Is it possible to have more than 8 ...
1 vote
0 answers
119 views

New loopback device module does not show trace in wireshark

I am trying to write a network device driver that can duplicate the functionality of the loopback device. I modified the code available at the link. I am testing on Linux 4.8. I removed code related ...
  • 1,283
0 votes
1 answer
379 views

Reachability of custom loopback interface on different machine

I have a loopback interface on one machine with a certain IP address, and on another machine I have a static route to that loopback interface subnet. I can ping the other loopback interface when ...
  • 137
2 votes
0 answers
75 views

selinux restorecon on systems without selinux like ubuntu [duplicate]

recently i had to change two files on a fedora raw image mounted via loopback on ubuntu, which usually runs in a kvm on the ubuntu host. That made a lot of troubles with selinux after booting from the ...
  • 1,030
1 vote
1 answer
496 views

Linux audio loopback: Multichannel to stereo (for OBS usage)

I am using the RME Fireface 802 to record a stereo signal for my stream, but unfortunatly OBS won't accept Multichannel audio that contains more than 8 signals. So, since OBS doesn't like my ...
1 vote
1 answer
3k views

Does `lo` have no MAC address?

From https://networkengineering.stackexchange.com/questions/57935/is-a-network-interface-supposed-to-have-no-more-than-one-mac-address/57937?noredirect=1#comment100988_57937 A network interface in ...
  • 95.9k
7 votes
4 answers
2k views

why `nmap 192.168.1.97` returns less services than `nmap 127.0.0.1`? [duplicate]

According to https://networkengineering.stackexchange.com/a/57909/, a packet sent to 192.168.1.97 "doesn't leave the host but is treated like a packet received from the network, addressed to 192.168.1....
  • 95.9k
9 votes
1 answer
2k views

How come one can successfully ping 127.0.0.2 on Linux?

On a FreeBSD system with a loopback network interface … % ifconfig lo0 lo0 link up loopback drv_running running multicast nd6 performnud auto_linklocal no_radr link rxcsum ...
  • 65.2k
0 votes
2 answers
312 views

What does the action "loop back" mean? [closed]

I have some difficulty to picture a diagram for the meaning of loopback. https://en.wikipedia.org/wiki/Loopback#Virtual_loopback_interface Any traffic that a computer program sends to a loopback IP ...
  • 95.9k
0 votes
2 answers
951 views

Are the IPv4 and IPv6 networks for my loopback interface the same network?

In output of ifconfig: lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen ...
  • 95.9k
1 vote
2 answers
312 views

Why is some virtual network interface assigned private IP address, while some is assigned loopback IP address?

Are docker0, lo and virbr0 are virtual network interfaces? Why are docker0 and virbr0 assigned private not loopback IP address? If private IP address can work like a loopback address, can lo be ...
  • 95.9k
1 vote
0 answers
864 views

Trying to make loopback device as Alsa-to-Jack bridge

Using this guide i trying to make loopback device as Alsa-to-Jack bridge. Everything fine until those lines # capture client alsa_in -j cloop -dcloop # playback client alsa_out -j ploop -dploop On ...
0 votes
1 answer
124 views

Does "loopback" in a loopback file mean the same as in loopback IP address?

man pvcreate says pvcreate initializes a PV so that it is recognized as belonging to LVM, and allows the PV to be used in a VG. A PV can be a disk partition, whole disk, meta device, or loopback ...
  • 95.9k
0 votes
4 answers
8k views

How can I do a loopback test?

Book Computer Networks says all addresses of the form 127.xx.yy.zz are reserved for loopback testing. Packets sent to that address are not put out onto the wire; they are processed locally and ...
  • 95.9k
1 vote
1 answer
667 views

Is it possible to zero the free space on a LUKS volume?

I want to have a LUKS volume as a loopback device pointing at a sparse file. Lets say I put a 20gb file on it, then later I delete it. How can I zero that area on the device itself so I can fallocate -...
  • 335
0 votes
1 answer
1k views

Is it possible to boot a grub-mkstandalone created img file from cfg?

So I have a fully functional .img file created using grub-mkstandalone. I put this on a CD and it boots fine, the ISO loads great in a VM, etc... Now, what I want to do is link an existing grub.cfg ...
  • 1
-1 votes
1 answer
86 views

default network on surface pro 4 is loopback

please look at this amin@amin-Surface-Pro-4 ~ $ ssh 192.168.1.10 -p 1366 ssh: connect to host 192.168.1.10 port 1366: No route to host amin@amin-Surface-Pro-4 ~ $ ifconfig lo Link encap:Local ...
0 votes
1 answer
33 views

ipv6 route slightly modified

I am running GNU/Linux version 3.4.113+ with a 6in4 tunnel to a tunnel broker. If I run command ip -6 route list table local I see a lot of routes. And one of this route entries is this local ::1 ...
  • 63
1 vote
1 answer
6k views

ip6tables - IPv6 DNAT to localhost

I have the following IPv4 rules: iptables -t nat -A PREROUTING -d "server ipv4" -p tcp -m tcp --dport 80 -i eth0 - j DNAT --to-destination 127.0.0.1:55555 iptables -P INPUT ACCEPT In addition, I ...
  • 11
10 votes
4 answers
13k views

Is it possible to put a real IP on a loopback device?

Is it possible to put a real IP (not in the 127.x.x.x) range on a loopback device?
  • 1,134
9 votes
2 answers
1k views

OpenBSD: Defining a new loopback interface

I need one more loopback interface in my OpenBSD 6.1, with the IP address 127.0.0.2. I can create it by hand with the command: ifconfig lo1 127.0.0.2 And to have it at boot time, I just inserted ...