All Questions
48
questions
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 ...
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 ...
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
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 ...
3
votes
1
answer
1k
views
Why does ip/port forwarding not working correctly?
My modem|router model is : TP-LINK TD-W8961ND adsl2+ modem router
This is my modem panel page
cgn ip address is 100.104.5.98
public ip address is 86.57.91.250
I config nat ip forwarding as follows :...
0
votes
1
answer
228
views
Make a remote host have a local IP address with ARP capability(Steam Link)
Currently I have two subnets in the 10.0.0.0/16, which are 10.40.20.0/24, let's say that's A and 10.32.80.0/24, B.
My PC is in the subnet A and what I'm going to do is use Steam Link, Oculus Air Link ...
0
votes
0
answers
87
views
Send private client IP using SNAT to my php web server
I have the next topology
Topology
The clients have a private ip 192.168.0.x
And I have two NAT servers
The server 1 has an interface with the gateway for the clients with 192.168.1.254
and has an ...
0
votes
1
answer
806
views
Raspberry pi with ubuntu: Forwarding all traffic from one interface to another
I have two Raspberry Pis running Ubuntu. Both of them have a native ethernet port and a usb ethernet->usb interface. They are both connected with their native ethernet to the same home router.
I ...
0
votes
0
answers
51
views
SmartDEN Watchdpg without Internet access over Linux PC with IP forward
I explain the assumption:
I have a local network, in which the router functions is done by an industrial Linux PC connected to the internet and a VPN; these are the PC data:
# sysctl -p
net.ipv4....
0
votes
1
answer
322
views
Setting a delay between Firecracker microVM tap devices on the same host
I have set up two microVMs using Firecracker on my Ubuntu 18.04 LTS host and have attached a tun/tap device for each of them. Now I'm trying to set a delay between the two VMs (say 100ms) using tc so ...
1
vote
1
answer
5k
views
Route all traffic through TUN interface
I want all my traffic go through TUN interface.
Here is the flowchart
So, as you can see, the traffic is routed to TUN iface on 10.0.0.1 address from every program. Then, the program attached to the ...
0
votes
3
answers
2k
views
cannot ping in private network after changing IP
I have two devices in my private network. One computer has IP 10.42.0.1 the other has IP 10.42.0.173.
I can ping from one computer to another and vice-versa.
If I want to change IP from 10.42.0.173 to ...
1
vote
1
answer
286
views
Route IP Packets with Same Source and Dest IP
I am hand-crafting ethernet packets using socket(AF_PACKET, SOCK_RAW, htons(ETH_P_IP)), and have successfully sent UDP packets from my PC to my router this way. Using tcpdump on both ends, I can see ...
0
votes
3
answers
12k
views
Can a Linux machine have two the same IP addresses on different interfaces/networks?
Is it possible to have two the same IP addresses and subnets assigned from two different interfaces/networks?
How would such machine behave? How would route table look like?
1
vote
1
answer
45
views
configuring a multihomed host as a router
I have two linux hosts on my home network, host1 and host2. I'm trying to configure it so that host1 is connected to a vpn, and host2 can send packets out over the vpn by routing through host1. My ...