-
extrowerk
-
arekinath
extrowerk: that's awesome, I love that there's a rust crate for doors
-
arekinath
... though I do just keep thinking in my head the whole way through... BUT WHAT ABOUT door_knob
-
arekinath
._.
-
arekinath
is that ptsd? it might be ptsd
-
andyf
-
andyf
Who'd have thought we'd have so many people working on rust+doors on illumos.
-
sommerfeld
I keep chuckling every time I see 'cow-path.cc' built while building gcc.
-
extrowerk
I'd like to create a VPN connection (or similar) between my omnios NAS in my lan and my cloud omniOS instance. AFAIK the tun/tap driver is not the most efficient way. What are the alternative options?
-
extrowerk
So I have st up a etherstub according to this guide :
antranigv.am/posts/2024/02/omnios-mirror-one
-
extrowerk
From the NGZ I can ping the GZ, but pinging a 3rd party host from NGZ is unsucessful. Is this expected?
-
extrowerk
I belive it should work.
-
sommerfeld
the instructions don't mention turning on ip forwarding in the GZ
-
sommerfeld
you can do that with routeadm
-
extrowerk
sommerfeld: thanks for the hint!
-
extrowerk
After a "routeadm -e ipv4-forwarding" and "routeadm -u
-
extrowerk
it shows now IPv4 forwarding enabled enabled
-
extrowerk
however it is still not working. maybe i need routing aswell?
-
wiedi_
no, "routing" will run a routing protocol which is usually not what you need. I'd double check the nat rules and the static routes in both zones make sense
-
extrowerk
let me see
-
sommerfeld
routing updates the routing table with routes learned via the routing protocol. forwarding pushes packets between interfaces.
-
sommerfeld
if you want to do nat you need to enable forwarding.
-
sommerfeld
next thing to look at would be the default route in the NGZ
-
sommerfeld
is there one?
-
extrowerk
default 10.10.0.1 UGZ 3 55 dns0
-
extrowerk
this is a partial NGZ netstat -r -n output,
-
sommerfeld
in the GZ: ipadm show-ifprop -p forwarding
-
sommerfeld
and
-
sommerfeld
ipadm show-prop -p forwarding ipv4
-
extrowerk
-
extrowerk
dns is NGZ, backup is GZ
-
sommerfeld
so next thing to do is see if packets are actually leaving the GZ. in GZ: "snoop -rd vioif0", while in NGZ: "ping -ns 8.8.8.8". do you see packets leaving? do you see flow entries appear in the output of "ipnat -l" in the GZ?
-
extrowerk
I see lines like: 152.53.64.1 -> 8.8.8.8 ICMP Echo request (ID: 4095 Sequence number: 5)
-
extrowerk
the sequence number increasing
-
extrowerk
also in ipnat output:
-
extrowerk
MAP 10.10.0.2 <- -> 152.53.64.1 [8.8.8.8]
-
sommerfeld
so I think you have the nat rules incorrect
-
sommerfeld
looks like the GZ' address is 152.63.64.73, and 152.53.64.1 is its default router
-
sommerfeld
you need to rewrite the internal addresses to the GZ's address
-
extrowerk
GZ is 152.53.67.73/22, its gateway is 152.53.64.1
-
extrowerk
cat /etc/ipf/ipnat.conf
-
extrowerk
map vioif0 10.10.0.0/24 -> 152.53.67.73/22
-
sommerfeld
oh.
-
sommerfeld
should be
-
sommerfeld
map vioif0 10.10.0.0/24 -> 152.53.67.73/32
-
sommerfeld
with the /22, it gives it a whole prefix to rewrite into
-
extrowerk
YAY, ping works now
-
extrowerk
Thank you very much!
-
sommerfeld
Glad to be able to help.
-
extrowerk
Grazie mille!
-
antranigv
extrowerk yeeeeey
-
antranigv
and thank you for finding these missing parts, I'll add them to part one
-
extrowerk
Thanks mate!
-
extrowerk
now i need to figure out why my naive firewall rules in GZ blocks dns resolution in NGZ:
-
extrowerk
-
extrowerk
dig works without the last block
-
extrowerk
adding that breaks the communication
-
sommerfeld
have you looked at the log of dropped packets?
-
sommerfeld
(you may need to update syslog.conf to route local0.info to a log file)
-
sommerfeld
see ipmon(8)