Hi, I'm trying to use sshttp with pppoe (mtu=1492, pppoe over eth0) e.g.:
sshttpd -n 4 -S 1022 -H 1443 -L 443 -l ${ppp0_ip} -U nobody -R /run/sshttpd
with my equivalent
https://github.com/stealth/sshttp/blob/master/nf-setup using DEV=ppp0 instead of eth0 and 1022, 1443 ports I get the following behaviour:
- websites visited from browser hang
- ssh username@ppp0_ip hangs
When using this setup directly with eth0 (behind a router which connects to same ISP using same pppoe configuration + mtu=1500) everything works as expected (ssh username@eth0_ip, websites are accessible).
The exact mtu=1492 for ppp0 is mandatory otherwise no website works - found after many painful tests.
When using pppoe I bind sshd to ppp0_ip:1022 and nginx to ppp0_ip:1443 while when using eth0 directly I bind them to eth0_ip:1022 and eth0_ip:1443.
I guess sshttpd binary has nothing to do with the problem but only the iptables used by
nf-setup pointed with the link above; may be those iptables change/reset the mtu to 1500 -> I guess this might be because the result seems very similar to when used mtu 1500 with pppoe (websites hang).
So what could really be the problem and the solution?