Skip to main content

All Questions

Tagged with
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 ...
thedenisnikulin's user avatar
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 ...
MooseBoys's user avatar
  • 293
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
0 votes
0 answers
2k views

How to reroute traffic form one IP to another while keeping the IP?

I currently have the following iptables rules in order to redirect traffic from b.b.b.b to a.a.a.a: -A PREROUTING -p tcp -m tcp --dport 25566 -j DNAT --to-destination a.a.a.a:25566 -A POSTROUTING -d ...
William's user avatar
  • 473
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?
Gabrijel Šimunović's user avatar
1 vote
0 answers
90 views

IP rule table look up does not seem to work

I have a sytem with three network interfaces. Below is the configuration that I'm trying to set up. wlan0 (its actually an WiFi AP interface) - other devices connects via this interface. net1 - ...
Ashgang's user avatar
  • 11
1 vote
2 answers
4k views

Why nic with incorrect subnet mask can still ping the gate way?

At first, my network config was like this: $ ip a 2: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 3c:97:0e:bd:b1:68 brd ff:ff:ff:ff:ff:ff ...
dspjm's user avatar
  • 450
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
1 vote
2 answers
12k views

Setting up a Linux server with a public Static IP

I have setup a Ubuntu Linux server in an office. It should have a public IP so that outside users can access the internet. Currently, it is set with a public IP, but is it supposed to have a local ...
JM at Work's user avatar