Skip to main content

All Questions

Tagged with
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 ...
Andres Pasca's user avatar
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 ...
Some Name's user avatar
  • 133
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 ...
Douglas B's user avatar
  • 141
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....
user avatar
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 ...
Tobias Pfandzelter's user avatar
0 votes
1 answer
205 views

Workaround for firewall that is blocking unsolicited traffic

I have AT&T wireless at my house for home internet. Where I am located it is rural and don't have many option's for ISP's. My goal is to be able to SSH back to my house and possibly view my ...
Jonathan Philpot's user avatar
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 ...
Coding_Karma's user avatar
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/...
Matthew's user avatar
  • 353
2 votes
1 answer
2k views

iptables -L not showing all rules?

I've added this rule with iptables: iptables -t mangle -I PREROUTING -j TEE --gateway 192.162.122.62 I've checked it with iptables -L or iptables -S but I can't see anything. Is that normal? how can ...
warumus's user avatar
  • 21
-1 votes
2 answers
130 views

Server, laptop, router, and modem, IP addresses?

I have a simple server at home. The server is directly connected to the modem and has IP: 192.168.1.7 My laptop is connected to a wireless router, which is connected to the same modem. My laptop has ...
MichaelDeSanta's user avatar
1 vote
1 answer
87 views

Should my server ever need to directly communicate with the NAT gateway?

What I mean by ``directly communicate'' Does it ever need to receive packets with the gateway's IP address as the source IP address, or send packets with the gateway's IP address as the destination ...
Parthian Shot's user avatar
2 votes
1 answer
2k views

CONNMARK on rewritten packets

I have a host, on which I rewrite saddr and daddr of IP packets coming to it, this is done by the program, employing libnetfilter_queue. Basically it acts like proxy. For example, the packet comes ...
aikipooh's user avatar
0 votes
1 answer
419 views

How to drop IP packets received on the default route interface when no other than default route is found?

I am setting up a router based on a linux kernel. As expected, ipv4 packets received on the interface used by default route are sent back to the same interface in case no other route is found. Is ...
user avatar
0 votes
2 answers
539 views

In Linux can I direct all traffic from a specific ip address or mac address to file

In Linux can I direct all traffic from a specific ip address or mac address to file. I am look of a way to take all traffic from a specific ip address or mac address and put it into a file. Does ...
nelaaro's user avatar
  • 13.8k