5 votes

IPTables how to nat 10.8.a.b to 10.0.a.b?

The IPTables target you want is NETMAP: This target allows you to statically map a whole network of addresses onto another network of addresses. It can only be used from rules in the nat table. --to ...
  • 56.2k
4 votes
Accepted

IPTables how to nat 10.8.a.b to 10.0.a.b?

The DNAT target won't work here; it translates everything to one host or to a randomly selected host from the specified range. (Basically it is meant to be used when matching one destination host, i.e....
  • 393k
1 vote
Accepted

Ip route : access ip on different interface trough Wireguard VPN

To solve the problem, I added the subnet of my interface (10.10.6.0/24) to the client (the Linux PC) AllowedIps of the wireguard server configuration file. Doing this will result in wireguard itself ...
  • 21
1 vote

IPTables how to nat 10.8.a.b to 10.0.a.b?

Another workable solution is to go through the one-time pain of renumbering your home network to something more unique. Instead of picking the common networks, renumber with a block out of 172.16.0.0/...
  • 1,982

Only top scored, non community-wiki answers of a minimum length are eligible