All Questions
102
questions with no upvoted or accepted answers
3
votes
0
answers
1k
views
How to connect to a torrent tracker running on a local host?
I want to share huge files via bitTorrent.
I'm using Ubuntu 18.04. I've set up a tracker opentracker listening to port 6969, and a client kTorrent listening to port 6881. My network uses NAT. I ...
2
votes
1
answer
420
views
Why is my public IPv6 address different from the one listed in linux
Going to [whatismyip.com][1] on different devices inside my home network provides expected results, the same IPv4 address and different IPv6 addresses on each device. However, upon looking at the ...
2
votes
0
answers
192
views
Mark only the udp traffic above a certain rate using iptables commands
I'm trying to achieve the following scenario:
Using the iptables command, mark UDP traffic with destination port 1234 that passes through a Linux router with the recommended DSCP value for Expedited ...
2
votes
1
answer
61
views
Switch between LANs - dynamic internal IPs of Linux guest; how to connect with hostname?
I sometimes bring my computer to home to work; and every time I do this, I have to check the IP of my VMware CentOS box's IP because I connect with Putty.
The work LAN use 10.160.xx.xx IP range and ...
2
votes
0
answers
10k
views
ssh connect to host X.X.X.X port 22: connection refused
I am not able to connet to any remote server. It shows up this error.
I am able to ping the same ip address.
Also I checked sshd is running :
sudo service sshd status
ssh.service - OpenBSD Secure ...
2
votes
0
answers
96
views
Changing IP address of one network changes another network's IP also
Problem: I have two virtual networks on my VM and changing the IP on one using Network dialog also updates the other IP.
Background:
I set the IP of VMnet1 (host only) to IP 192.168.241.4
I set up ...
2
votes
0
answers
307
views
How can I add or delete route about multi path one by one?
for example, current default route is
ip route add default nexthop via 10.0.2.1 weight 1 nexthop via 10.0.2.3 weight 1
if the nexthop 10.0.2.1 is unreacheable, how can I only del 10.0.2.1, not del ...
2
votes
0
answers
3k
views
PPP: Modem hangup on IPCP negotiation
First of all, sorry for the question if it is obvious, I'm not very good at network configuration.
I'm currently trying to connect a Linux machine with Busybox through a modem to a cellular network (...
2
votes
1
answer
194
views
Hopping Gateways in a Multi-gateway Network?
I'm on a network that has multiple gateways, and it seems that my machine connects to a different gateway than what my phone does. I'm curious as to how I may switch to another gateway. I've tried ...
2
votes
1
answer
355
views
Is there a trickle-like tool to set IP ToS?
I've set up my router to traffic shape using the ToS field, but not all bandwidth-heavy programs set an appropriate value. So I need a way to set the ToS for the traffic of an arbitrary program.
Is ...
1
vote
0
answers
43
views
strange routing table entries
My Linux network device cannot be access outside my local network.
I checked the routing table, and found the following:
netstat -rn
Kernel IP routing table
Destination Gateway Genmask ...
1
vote
0
answers
57
views
SSDP Discovery not working for IP address other than WSL's instance IP
I am trying to port a process from Windows to WSL/Linux. Earlier, two Windows process were communicating through TCP connection after successful SSDP discovery. Now, I want similar communication to ...
1
vote
0
answers
212
views
SSH connection between Ubuntu Server VM
I'm trying to make SSH connection from my Windows 10 host to the Ubuntu Server VM.
At the beginning I built the VM from scratch on VMware and chose the Bridged Adapter configuration. It gave me IP of ...
1
vote
0
answers
181
views
RTNETLINK answers: Invalid argument when trying to use avahi-autoipd on Petalinux device
I have an embedded device running PetaLinux that I wish to configure to use avahi-autoipd to use LLA on an interface.
I have been trying to do this from the CLI to ensure it works as expected, and I ...
1
vote
0
answers
147
views
linux: how to troubleshoot when set multiple subnet (public IP) to single network interface?
==== Question edited after the problem "solved", but the question remains clueless to me ====
Hosting provider's support staff solved the problem without giving explanation.
linux: how to ...
1
vote
1
answer
1k
views
IP Address delete - RTNETLINK answers: Cannot assign requested address
I am trying to install a distribution of Kubernetes with OVS. During the installation, the script tries to execute ip addr del 65.109.33.184/32 dev enp41s0, The command fails with Error RTNETLINK ...
1
vote
2
answers
15k
views
Setting down and up a working interface with ip command causes it to stop working
I'm running Debian 11 and using the CLI, when bringing down and up a working interface with ip command (doing no changes at all on it's parameters) it stops working.
Steps that I follow:
Boot the ...
1
vote
1
answer
2k
views
"ip neigh flush" command removes entries with "extern_learn" and "permanent" set
If arp/neighbor entries are programmed with both "extern_learn" and "permanent", "ip neigh flush" command throws "Invalid argument" error, but the entries are ...
1
vote
0
answers
313
views
ufw logs BLOCKS from 2 sites while BLOCK logging is completely disabled for ALL sites
Logging is enabled. Only allow rules are logged. The very last line of my firewall rules is:
Anywhere DENY Anywhere
No logging is asked for, however two IPs repeatedly show ...
1
vote
1
answer
425
views
Why can i connect from different subnet? Windows 10 PC connected to Ubuntu PC
Ok, so i connected a linux laptop to windows 10 laptop with ethernet cable.
Windows machine
I specified manual IP settings for windows laptop ethernet adapter to be:
IP address 192.168.255.126
Subnet ...
1
vote
1
answer
532
views
Workaround for two devices with the same IP address on an airgapped network which is using an unmanaged switch where DHCP isn’t an option
So I have two IP cameras and a PC running Fedora 30 on a local network connected together using an unmanaged switch.
The two IP cameras have the same IP address by default and for reasons I won’t go ...
1
vote
0
answers
551
views
Container port/service accessible from all host IP's with docker custom bridge linked to IPv4 alias on Synology NAS
Good day all.
I Have a question regarding Docker on a Synology NAS (Linux).
I have a Ubiquity Unifi Controller container running on this NAS. (jacobalberti/unifi) This image needs specific ports to ...
1
vote
3
answers
2k
views
Forwarding Traffic To Particular IP using IPTABLES
I am dealing with 3 machines (VMs) :-
A :-172.20.10.1 (Client)
B :-172.20.10.2 (Original Server)
C:-172.20.10.5 (Redirect Server)
Now I want A to visit B and B to forward that to C.
I was able ...
1
vote
0
answers
966
views
Route all traffic from VPS to my home network
I have a VPS with a static public IP, and I also have a home network with a static public IP.
I want to somehow make it so that if the VPS's static IP receives traffic on a certain port, it routes/...
1
vote
1
answer
359
views
ping communication between interfaces in linux
Part 1 - Is it possible to ping between ip on port0 to ip on port1 of same NIC adapter ? The ICMP should traverse on the wire connected between ports. i.e
On HOST A with two-port-adapter
port-0-...
1
vote
0
answers
80
views
convert Ethernet router into integration gateway
I need to integrate to an Ethernet proprietary network. It is IP based but doesn't implement TCP.
I need a router which will poll devices on this network, and periodically post the data using ...
1
vote
0
answers
138
views
point multiple ip address to hosting
I have centos server, earlier it had 1 ip [ a.b.c.d ] (external ip , eg., 141.101.114.59).
Now, I bought 2 additional ip [b.c.d.e , f.g.h.i] (external ip , e.g, 190.93.244.58 , 130.93.245.8 ). I have ...
1
vote
0
answers
359
views
Linux IP aliasing with single DHCP and single STATIC IP address
I'm working on an embedded system with a single physical ethernet device. Using aliasing, I'd like the device configured such that one static IP address (call it s.s.s.s) is ALWAYS available. The ...
1
vote
2
answers
1k
views
How does wlan interface receive 802.11 management frames?
From what I have read, hostapd (its used for creating a wifi access-point) creates a mon0.wlan0 interface to send and receive wifi management frames (http://lists.shmoo.com/pipermail/hostap/2012-May/...
1
vote
0
answers
1k
views
Ethernet port on Linux machine not recognizing ethernet connection with embedded device
I have an atmel at91sam7x256 microcontroller that I would like to use for a TCP/IP communication. The very first step of my project is to be able to "ping" my board given its IP address. I have its IP ...
1
vote
1
answer
675
views
EC2 instance with two internal IPs - using ifconfig
I am trying to allocate another internal IP to an EC2 (classic - not VPC) instance with the following command.
sudo ifconfig eth0:0 inet 10.80.7.40 netmask 255.255.255.0
Here, 10.80.7.40 is just a ...
1
vote
2
answers
2k
views
What kind of methods are used to calculate IP ID fields?
I'm doing a bit of research on the methods of generating the ID field of the IP headers.
I have read the sources and other documents and have confirmed that Linux generates a random number for every ...
1
vote
0
answers
3k
views
iproute nexthop not working - defining multiple default gateways
I have several point to point connections and I’d like to use all of them as default gateways. I saw this link which explains how to do this using load balancing by calling ip route with a next hop ...
1
vote
0
answers
1k
views
How to redirect a URL to a certain IP, as with /etc/hosts?
Someone on my shared server has messed with some setting such that gethostbyname('www.google.com') (PHP) gives me the IP for his website, rather than Google. I believe this can be done via the /etc/...
1
vote
1
answer
6k
views
How to change the IPv6 link local address of an interface in Linux?
I want to remove the default IPv6 link-local address of an interface and want to replace it with a customized IPv6 link-local address?
Can you help me here?
If I assign a new link-local IPv6 address ...
0
votes
0
answers
21
views
How to communicate across network segments?
I have two hosts, A and B, which are connected to the same router via Ethernet.
A's IP address is 192.168.3.100, but I don't know B's IP address.
I want to scan B's IP address through A, but B's ...
0
votes
0
answers
13
views
WANem Emulator and two VM hosts configuration
enter image description here
The below are the configurations I made ,
`
WANEM IP - 192.168.1.111
255.255.255.0
Client
Windows IP - 192.168.1.10
255.255.255.0
Default gateway - 192.168.1.111
It is a ...
0
votes
0
answers
156
views
Netplan - add secondary IP address and assign a label
I saw the same question here, but I can't find it anymore. How can I add secondary IP address and assign a label to it via netplan?
I have this netplan config:
# This is the network config written by '...
0
votes
1
answer
155
views
Cannot IP Forward From a Physical Linux Server to a Docker Container Running on Another Physical Server and Vice Versa
TLDR;
I have three servers, Server A, B, and C. Server A and B are physical servers on the same subnet. Server C is a virtual server, a basic WireGuard Docker Compose container running on server B, ...
0
votes
0
answers
170
views
Why do we need multiple iptables?
In man iptables there are 4 tables defined: filter, mangle, nat, raw. And many of them have the same predefined chain. For instance, nat and mangle both have OUTPUT chain.
The question is why do we ...
0
votes
0
answers
139
views
How does linux route to an IP address from the routable subnet if the IP address is assigned to a virtual interface on multiple nodes
I see a scenario working that I do not understand (bad luck, I know).
I have a cluster comprising 3 nodes, each of them has a NIC (ens4) with an individual IP address assigned, e.g. 10.10.20.210. The ...
0
votes
0
answers
372
views
Set a static private IP with systemd-networkd on arch linux
I am using Arch linux and I want to have a static private IP that is always 192.168.1.10.
How do I do this? I am using systemd-networkd and I can achieve the functionality I want by running sudo ip ...
0
votes
1
answer
442
views
How to detect linux device on LAN from Windows
I'm developing an application on embedded linux. User has an option to change the IP address of the device from a web portal.
I have a windows application (built on C#) that can communicate with the ...
0
votes
0
answers
84
views
OVH new IPv4 address
I have an OVH dedicated server (under Debian 10) with the main IP "149.xxx.xxx.xxx".
I bought a Fail-Over IP and I want the server to take into account this new IP, "58.xxx.xxx.xxx"...
0
votes
0
answers
23
views
How to block internet if one of gateways is down
I have router with VPN client. Sometimes something goes wrong and connecton to VPN is down. I'd like to restrict clients from connection to the internet directly (without VPN) in this case.
Is it ...
0
votes
1
answer
500
views
add generic/dynamic route via "ip route add" on a linux machine
I am configuring a raspberry pi to work as a wireguard VPN router/firewall. The client will connect to the raspi via WLAN (hostapd), the raspi itself is connected to the ISPs router via LAN, and ...
0
votes
1
answer
196
views
Wrong hostname resolution in Local network
context
I was trying in vain to map drives from my NAS to my PC via NFS when I figured out that my PC hostname was not resolved with the proper IP address from my NAS or any other devices connected ...
0
votes
0
answers
508
views
How can I hide my server IP from server users
I'd like to find a way to block websites like https://checkip.amazonaws.com or at least restrict them to the point they can no longer output my server's public IP address.
For example, if I do curl ...
0
votes
0
answers
650
views
Why can't I log in to PuTTY as user, but only root
I'm trying to Split and format Disk on VM in Debian. I also need set file permision.
My problem is that I can't log to the server through PuTTY as user, only as root. I entered same IP address as for ...
0
votes
0
answers
504
views
Limiting iot devices access to network through dual NIC linux machine - bridge vs router?
I have a Linux machine with two ethernet ports (one of which is connected to my ISP's router). I want to connect an iot device via the other ethernet port but limit (but not disable) its access to ...