Re: How do I connect my new wifi router (Mi Router 4C)?

2023-11-09 Thread Max Nikulin
On 08/11/2023 20:39, Martin wrote: Here is output from phone connected to WiFi setup program: Default gateway: 192.168.231.3 It seems dnsmasq is able to serve reasonable settings with minimal configuration. chain postrouting { type nat hook postrouting priority

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-11-09 Thread Anssi Saari
Martin writes: > I just enabled it (again) now: > root@redmoon:~# systemctl enable nftables.service > Created symlink /etc/systemd/system/sysinit.target.wants/nftables.service → > /lib/systemd/system/nftables.service. > root@redmoon:~# systemctl status nftables.service > ○ nftables.service -

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-11-08 Thread Martin
On Sun, Nov 05, 2023 at 10:55:12PM +0700, Max Nikulin wrote: > It should be checked first and > > journalctl -b -u nftables.service > > alongside with searching for any nft messages in "journalctl -b". I > suggested earlier to read /usr/share/doc/nftables/README.Debian It > explicitly

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-11-05 Thread Martin
On Sun, Nov 05, 2023 at 06:48:47AM +, Tixy wrote: > On Sat, 2023-11-04 at 20:08 +0100, Martin wrote: > [...] > > BTW putting above script into /etc/nftables.conf (at the bottom of file) > > did not ever worked - I had always to run that file manualy as root. > > Command 'nft list ruleset' only

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-11-05 Thread Martin
On Sun, Nov 05, 2023 at 10:26:17AM +0200, Anssi Saari wrote: > Anyways, a typical masquerade rule would specify the source network and > an outgoing interface. For example, I have in my Linux router: > > ip saddr 10.0.2.0/24 oifname "enp1s0" masquerade > > so for you that would become > > ip

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-11-05 Thread Max Nikulin
On 05/11/2023 13:48, Tixy wrote: On Sat, 2023-11-04 at 20:08 +0100, Martin wrote: [...] BTW putting above script into /etc/nftables.conf (at the bottom of file) did not ever worked - I had always to run that file manualy as root. Command 'nft list ruleset' only then showed this table. I have no

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-11-05 Thread Anssi Saari
Martin writes: > #!/usr/sbin/nft -f > > table ip masqrule {} > flush table ip masqrule > table ip masqrule { > chain postrouting { > type nat hook postrouting priority srcnat; policy accept; > ip saddr 192.168.231.3/24 ip daddr != 192.168.231.3/24 masquerade > } > } > > When I

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-11-05 Thread Tixy
On Sat, 2023-11-04 at 20:08 +0100, Martin wrote: [...] > BTW putting above script into /etc/nftables.conf (at the bottom of file) > did not ever worked - I had always to run that file manualy as root. > Command 'nft list ruleset' only then showed this table. > I have no idea why. To me it seemed

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-11-04 Thread Martin
On Thu, Oct 26, 2023 at 10:00:08PM +0700, Max Nikulin wrote: > On 26/10/2023 17:06, Martin wrote: > > On Thu, Oct 26, 2023 at 09:54:22AM +0700, Max Nikulin wrote: > > > > > > #!/usr/sbin/nft -f > > > table inet sharedconnection {} > > > flush table inet sharedconnection > > > table ip

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-10-26 Thread Max Nikulin
On 26/10/2023 17:06, Martin wrote: On Thu, Oct 26, 2023 at 09:54:22AM +0700, Max Nikulin wrote: #!/usr/sbin/nft -f table inet sharedconnection {} flush table inet sharedconnection # table ip shared connection { ... } from above I did create FILE.conf and after executing it I can connect to

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-10-26 Thread Martin
On Thu, Oct 26, 2023 at 09:54:22AM +0700, Max Nikulin wrote: > On 26/10/2023 02:20, Martin wrote: > > On Wed, Oct 25, 2023 at 07:33:52PM +0700, Max Nikulin wrote: > > > should have something like > > > > > > table ip sharedconnection { > > >chain postrouting { > > > type nat hook

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-10-25 Thread Max Nikulin
On 26/10/2023 02:20, Martin wrote: On Wed, Oct 25, 2023 at 07:33:52PM +0700, Max Nikulin wrote: should have something like table ip sharedconnection { chain postrouting { type nat hook postrouting priority srcnat; policy accept; ip saddr 192.168.231.3/24 ip daddr !=

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-10-25 Thread David Wright
On Wed 25 Oct 2023 at 11:04:59 (+0300), Anssi Saari wrote: > Martin writes: > > With wifi antena I receive a (rather weak) signal that connect my > > computer to internet. I have to use windsurfer antena booster > > (http://members.multiweb.nl/schaaijw/windsurfer_wifi_en.pdf) > > to get usable

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-10-25 Thread Martin
On Wed, Oct 25, 2023 at 02:15:36PM +0200, Marco M. wrote: > Am 25.10.2023 um 13:33:48 Uhr schrieb Martin: > > > On Wed, Oct 25, 2023 at 08:47:03AM +0200, Marco M. wrote: > > > > > > Why don't you use DHCP like your phone does? > > > > Because I used this computer before I had WiFi and phone.

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-10-25 Thread Martin
On Wed, Oct 25, 2023 at 07:33:52PM +0700, Max Nikulin wrote: > On 25/10/2023 18:24, Martin wrote: > > On Wed, Oct 25, 2023 at 03:17:09PM +0700, Max Nikulin wrote: > > > > > > So packet forwarding should be enabled on the computer. > > sysctl net.ipv4.ip_forward > > almost certainly enabled

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-10-25 Thread Max Nikulin
On 25/10/2023 18:24, Martin wrote: On Wed, Oct 25, 2023 at 03:17:09PM +0700, Max Nikulin wrote: So packet forwarding should be enabled on the computer. sysctl net.ipv4.ip_forward almost certainly enabled since you have the docker0 network interface However I suspect an issue with IP

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-10-25 Thread Marco M.
Am 25.10.2023 um 13:33:48 Uhr schrieb Martin: > On Wed, Oct 25, 2023 at 08:47:03AM +0200, Marco M. wrote: > > > > Why don't you use DHCP like your phone does? > > Because I used this computer before I had WiFi and phone. Why it is a problem to change it? Do you really want to deal with

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-10-25 Thread Martin
On Wed, Oct 25, 2023 at 08:47:03AM +0200, Marco M. wrote: > > Why don't you use DHCP like your phone does? Because I used this computer before I had WiFi and phone. > Show > ip a I posted output of that command to Max Nikulin email. (Do not want to to post same info twice again as first

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-10-25 Thread Martin
On Wed, Oct 25, 2023 at 03:17:09PM +0700, Max Nikulin wrote: > On 25/10/2023 15:04, Anssi Saari wrote: > > You have some kind of mysterious internet connection from something. > > That needs to connect to the router's WAN port. > > My guess is the following: > > - Source of weak WiFi > - WiFi

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-10-25 Thread Max Nikulin
On 25/10/2023 15:04, Anssi Saari wrote: You have some kind of mysterious internet connection from something. That needs to connect to the router's WAN port. My guess is the following: - Source of weak WiFi - WiFi booster - WiFi adapter in computer - ethernet port in computer - ethernet port

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-10-25 Thread Anssi Saari
Martin writes: > Hello, > > With wifi antena I receive a (rather weak) signal that connect my > computer to internet. I have to use windsurfer antena booster > (http://members.multiweb.nl/schaaijw/windsurfer_wifi_en.pdf) > to get usable signal. So my computer have internet signal from > wifi

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-10-25 Thread Marco M.
Am 25.10.2023 um 08:45:26 Uhr schrieb Martin: > I am using /etc/network and here is whole /etc/network/interfaces > file: > > auto lo > iface lo inet loopback > > auto enp3s0 > iface enp3s0 inet static > address 192.168.231.3 > netmask 255.255.255.0 Why don't you use DHCP like your

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-10-25 Thread Martin
On Wed, Oct 25, 2023 at 07:24:10AM +0200, Marco M. wrote: > > Please specify the EXACT model names and the exact wiring of your > devices. There is no other name than 'Mi Router 4C' made by Xiaomi. 2 links that I provided are for exact model I have. (here they are again:

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-10-24 Thread Martin
On Wed, Oct 25, 2023 at 06:52:09AM +0200, Geert Stappers wrote: > On Wed, Oct 25, 2023 at 06:15:00AM +0200, Martin wrote: > > I tried lot of setup and none worked. > > And also missed https://lists.debian.org/debian-user/2023/10/msg00684.html > and

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-10-24 Thread Marco M.
Am 25.10.2023 um 06:15:00 Uhr schrieb Martin: > As it turn out I am not so bright to make this whole setup working :( > I pluged in new router to power and connected ethernet cable from my > computer to router WAN connection. (I belive this is how it should be > connected togheder) Please

Re: How do I connect my new wifi router (Mi Router 4C)?

2023-10-24 Thread Geert Stappers
On Wed, Oct 25, 2023 at 06:15:00AM +0200, Martin wrote: > Hello, > snip > > I tried lot of setup and none worked. And also missed https://lists.debian.org/debian-user/2023/10/msg00684.html and https://lists.debian.org/debian-user/2023/10/msg00685.html and

How do I connect my new wifi router (Mi Router 4C)?

2023-10-24 Thread Martin
Hello, With wifi antena I receive a (rather weak) signal that connect my computer to internet. I have to use windsurfer antena booster (http://members.multiweb.nl/schaaijw/windsurfer_wifi_en.pdf) to get usable signal. So my computer have internet signal from wifi antena - yay great thing :) Now

How do I connect my new wifi router (Mi Router 4C)?

2023-10-24 Thread Fero Dali
Hello, With wifi antenna I receive a (rather weak) signal that connect my computer to internet. I have to use windsurfer antenna booster (http://members.multiweb.nl/schaaijw/windsurfer_wifi_en.pdf) to get usable signal. So my computer have internet signal from wifi antenna - yay great thing :)

How do I connect my new wifi router (Mi Router 4C)?

2023-10-24 Thread Martin
Hello, With wifi antena I receive a (rather weak) signal that connect my computer to internet. I have to use windsurfer antena booster (http://members.multiweb.nl/schaaijw/windsurfer_wifi_en.pdf) to get usable signal. So my computer have internet signal from wifi antena - yay great thing :) Now

How do I connect my new wifi router (Mi Router 4C)?

2023-10-24 Thread Martin
Hello, With wifi antena I receive a (rather weak) signal that connect my computer to internet. I have to use windsurfer antena booster (http://members.multiweb.nl/schaaijw/windsurfer_wifi_en.pdf) to get usable signal. So my computer have internet signal from wifi antena - yay great thing :) Now

How do I connect my new wifi router (Mi Router 4C)?

2023-10-24 Thread Martin
Hello, With wifi antena I receive a (rather weak) signal that connect my computer to internet. I have to use windsurfer antena booster (http://members.multiweb.nl/schaaijw/windsurfer_wifi_en.pdf) to get usable signal. So my computer have internet signal from wifi antena - yay great thing :) Now