Score:0

packet forwarding from an interface to ip address using iptables

pt flag

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.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.