Date: Wed, 5 Apr 2017 11:10:31 +0100 From: Paul Webster <paul.g.webster@googlemail.com> To: freebsd-pf@freebsd.org Subject: Re: Complicated NAT setup Message-ID: <CADdqeiNyXdm46TAw_022ghrL9oOPfrpvuemouj-QqANW%2B=ewDQ@mail.gmail.com> In-Reply-To: <CADdqeiPqSNOV0giyAVUTwFPLdz7TWki9qHq36AraoqXFb14o7Q@mail.gmail.com> References: <CADdqeiOmW-kAi2q4yAGrQUvLshLZP3kRSTw7-segVJm7z6FONA@mail.gmail.com> <47feb5d2-ff8b-3657-5d92-207ca341a6ab@als.nnov.ru> <CADdqeiPqSNOV0giyAVUTwFPLdz7TWki9qHq36AraoqXFb14o7Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
I just read over my first post, a note would be that it does work perfectly
outbound the only thing not working is ICMP and UDP inbound
On 5 April 2017 at 10:34, Paul Webster <paul.g.webster@googlemail.com>
wrote:
> Thank you for the fast reply mark, here is a list of interfaces with there
> relative ips:
>
> GW1(local lan gateway):
> lo0: 127.0.0.1 ::1
> igb0: 86.5.192.180 (public_ip)
> igb1: 172.31.33.1/24 (private lan)
> msk0: unused/192.168.0.1
> tun0: 172.19.20.2
> gre0: 10.0.0.1 (via igb0)
>
> GW2(vps remote gateway):
> lo0: 127.0.0.1 ::1
> vio0: 185.157.232.30
> gre0: 10.0.0.2 (via vio0)
>
> Xbox1 ( GW1[igb1->gre0] -> GW2[gre0->vio0] ):
> lo0: 127.0.0.1 ::1
> vtnet0: 172.31.33.254
>
> NOTE: xbox1 in this case is really freebsd 12-current with the forced ip
> 172.31.33.254, because xbox really is to restrictive for debug purposes,
> all it requires is that I set the correct dhcp-host on GW1 to make the
> xbox1 172.31.33.254 though.
>
> Also the $localnet is really { 172.31.33.2-200 } so when the XBOX is 172.31.33.254
> it is not going out via primary NAT rule it is instead getting caught by
>
> pass in quick on $int_if from $josh_xbox rtable 1 # Swap packets
> from the xbox to fib1 routing table
>
> and the corresponding NAT further up the ruleset, the 'default route' of
> 'fib 1' is 10.0.0.2
>
>
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADdqeiNyXdm46TAw_022ghrL9oOPfrpvuemouj-QqANW%2B=ewDQ>
