libera/#maemo/ Thursday, 2021-12-09

sicelonetworking SOS please :-)15:52
bencoh?15:53
bencohlemme guess - you need a tunnel/vpn of some sort?15:53
sicelohttps://paste.debian.net/1222770/15:54
bencohah, nevermind :)15:54
siceloi have the scenario in this paste - is there anything i could/should do to make pings work from wlan0 to lxcbr0 ?15:54
bencohfrom wlan0 to lxcbr0?15:55
bencohI don't think ping -I wlan0 does what you expected15:55
siceloyes :-(15:56
bencohyou basically want to test if your lxc container is reachable from another computer connected to the wifi network?15:56
siceloit sends it out the default gw, which of course doesn't know about 10.0.3.0/24 network15:56
sicelobencoh: yes, something like that :-)15:56
bencohyou'll need a bit more than just ip_forward then15:57
sicelonot masquerade, i hope :-/15:57
bencohif you only want lxc->world, then masquerade15:58
bencoh(it's not that hard)15:58
bencohif you also want world->lxc, then you need to NOT use nat/masquerade, AND setup routes both ways15:58
bencohbut first you also need to set /proc/sys/net/ipv4/conf/eth0/forwarding for every interface involved15:58
bencohin your case, lxc0 and wlan015:58
bencohand you need to set routes both ways, ie the remote computer needs to know how to reach the lxc15:59
siceloright. maybe let me ask the real question (i was simplifying a bit here, because of a quick test i made on my laptop)16:00
bencoh(or the router, if you intend to connect your lxc to the world without masquerading on the laptop)16:00
sicelobencoh: https://paste.debian.net/1222775/16:03
siceloi want that .106 to be pingable from the internet. .105 is pingable, and ISP routes the .104/29 block to this router. so ISP part seems ok16:04
bencohyou need a static route on the router16:05
siceloi don't have access to .106 (maybe they have wrong gw set, or something). what i need is to be sure that there's no mistake in the way things are configured in this router16:05
bencohand set that address on one of the computers16:05
bencoh(at least that's one way of doing it)16:05
siceloyou need a static route on the router .... static route pointing to?16:06
siceloi'm asking because there is a route in the router for the .104/29 network16:21
bencohah nevermind16:33
bencohI missed the fact that the /29 is routed to the lan16:34
bencohwho is .106?16:34
siceloa Fortigate Firewall. i have no access to it. (actually i work for the ISP ... so my jurisdiction stops at the router. client says they can't do GRE tunnels in their firewall because we're blocking stuff. but we're not) :-)16:36
bencohat that point I'd tcpdump on mikrotik and make sure packets from the outside are properly forwarded toward .10616:37
siceloi asked their tech guy to plug in a laptop on that ether3, and set it to have .106. it didn't make a difference (although now i can't be sure if he did it right)16:37
bencohat least something pings16:38
sicelounfortunately he was also in a rush (covid scare in their office), so we couldn't do further tests. what i don't understand is why i can't ping the .106 from within the router if i specify src address to be the 75.54.16:39
siceloi *think* the router should 'see' that the requested address is already routed in local table, so no need to send it to default gw16:40
siceloanyway, i'm trying to be absolutely sure this router is correctly configured16:40
bencohlinux has a setting to drop packets with a dst addr not matching the interface address16:42
bencohit might be enabled on your mikrotik16:42
bencoh(although I don't know how it would behave on interface with forwarding enabled)16:43
siceloi should think since the Mikrotik is specifically meant to operate as a router, those settings default to the right thing16:45
sicelobut yes, thanks for checking16:45
bencohanyway I'd still just tcpdump on mikrotik16:46
bencohand try pinging from the outside16:46
bencohjust to make sure packets go out, and that you don't get any answer16:46
siceloi did. let me see if i can share a paste16:46
sicelobencoh: https://paste.debian.net/1222781/16:48
bencohand no answer?16:50
bencohwell then ...16:50
bencohlooks like the fortigate filters traffic (?)16:51
siceloit does respond when pinged from .105 though16:53
bencohwhich is why I said it's probably filtering16:53
siceloand ping also didn't work when a laptop was connected instead of firewall (assuming it was configured correctly)16:54
siceloi didn't to a tcpdump at that time though, unfortunately16:54
sicelos/to/do/16:54
siceloi do think the problem is on their side (firewall). just wanted to be sure i'm not the one with bad config to begin with :-)16:55

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!