0

I have an interface (enp0s20u3) with address 192.168.1.3/24 and I want all incoming traffic to forward it to 192.168.95.4 address using iptables. How can I this? I have done traffic forwarding from one interface to another interface in the past, but not to an ip address.

192.168.1.3 is a local interface ip address where as 192.168.95.4 is a wireguard peer ip address. So in essence I want to forward incoming traffic from an interface to a wireguard peer. I have ip4 forwarding enabled. I can use 192.168.1.3 as a gateway to a wifi router and it works fine. But I want to forward traffic to wireguard peer's ip address to route all traffic via remote server.

Jigar Patel
  • 109
  • 1

0 Answers0