Re: How to forward traffic through created tunnel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Yes am trying to pass traffic through the tunnel.

On Thu, Dec 20, 2018 at 12:54 PM Josiah Chinedu
<josiahaccounts@xxxxxxxxx> wrote:
>
> Hello, i am having issues passing traffic through a tunnel that was
> created using StrongSwan.
> Since the tunnel is up, i am having difficulties connecting to through
> the tunnel to the partner's server.
> The idea is to route incoming traffic through the tunnel to the
> partners server ip.
> I have tried lots of solution but none seems to work.
>
> Here is my iptables current configuration:
> x.x.x.x = external IP
> y.y.y.y = VPN public IP
> z.z.z.z = Partner Server Private IP
> port = partner open port
>
> iptables -t nat -A PREROUTING -s x.x.x.x -d y.y.y.y -p udp -j DNAT
> --to-dest z.z.z.z:port
> iptables -t nat -A POSTROUTING -d z.z.z.z -p udp --dport port -j SNAT
> --to-source y.y.y.y:4500



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux