Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No external connectivity #3

Open
OliverEvans96 opened this issue Oct 19, 2021 · 3 comments
Open

No external connectivity #3

OliverEvans96 opened this issue Oct 19, 2021 · 3 comments

Comments

@OliverEvans96
Copy link
Contributor

Hi there,

Thanks for sharing your work! I'm trying to share wifi from my laptop to a raspberry pi, as you did.

When I connect the two devices via an ethernet cable, they can ping each other, but neither device can access the internet. Not even when I use curl's --interface flag from my laptop.

Any idea what might be going on here?

Thanks,
Oliver

@stanipintjuk
Copy link
Owner

stanipintjuk commented Oct 19, 2021

Oof it's been a long time ago that I have used this config myself but I'll give it a shot.

I'll need

  1. Your nixos config on your laptop (only the router part)
  2. Output of ip addr from your laptop
  3. Output of ip addr from your raspberry pi

@OliverEvans96
Copy link
Contributor Author

Hi, sorry - it took me a few days to plug it back in. Here are the relevant details:

  1. excerpt from configuration.nix
{
  imports =
    [ 
      # Include the results of the hardware scan.
      ./hardware-configuration.nix
        
      # Share wifi over ethernet
      # https://github.com/stanipintjuk/nixos-router
      (import /home/oliver/nix/nixos-router/mkRouter.nix {
        internalInterface = "enp0s31f6";
        externalInterface = "wlp0s20f3";
      })
    ];
    # --snip--
}
  1. output of ip addr from laptop
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: wlp0s20f3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether <mac-addr> brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.126/24 brd 10.0.0.255 scope global dynamic noprefixroute wlp0s20f3
       valid_lft 165747sec preferred_lft 144147sec
    inet6 2601:1c0:cf00:7950::afd0/128 scope global dynamic noprefixroute 
       valid_lft 597743sec preferred_lft 597743sec
    inet6 2601:1c0:cf00:7950:f48a:cc91:bfeb:c647/64 scope global temporary dynamic 
       valid_lft 331150sec preferred_lft 79293sec
    inet6 2601:1c0:cf00:7950:d2ab:d5ff:febb:4b12/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 331150sec preferred_lft 331150sec
    inet6 2601:1c0:cf00:7950:551:6825:96bf:7dda/64 scope global temporary dynamic 
       valid_lft 129404sec preferred_lft 69100sec
    inet6 2601:1c0:cf00:7950:70cb:858b:9da3:c4d6/64 scope global temporary dynamic 
       valid_lft 91365sec preferred_lft 68949sec
    inet6 2601:1c0:cf00:7950:8a61:c123:22de:e055/64 scope global temporary dynamic 
       valid_lft 21111sec preferred_lft 21111sec
    inet6 2601:1c0:cf00:7950:3cae:3dc2:9d4:b84a/64 scope global temporary dynamic 
       valid_lft 91215sec preferred_lft 60610sec
    inet6 2601:1c0:cf00:7950:814b:8fd9:5d4d:cad9/64 scope global temporary dynamic 
       valid_lft 324078sec preferred_lft 57934sec
    inet6 2601:1c0:cf00:7950:a5de:a70e:f661:ae39/64 scope global temporary dynamic 
       valid_lft 82883sec preferred_lft 57290sec
    inet6 2601:1c0:cf00:7950:6056:fded:d4e8:78c6/64 scope global temporary dynamic 
       valid_lft 302724sec preferred_lft 56399sec
    inet6 2601:1c0:cf00:7950:79af:510b:a1e4:cc12/64 scope global temporary dynamic 
       valid_lft 79553sec preferred_lft 52751sec
    inet6 2601:1c0:cf00:7950:f5f5:b451:f5cc:686c/64 scope global temporary dynamic 
       valid_lft 75018sec preferred_lft 50611sec
    inet6 2601:1c0:cf00:7950:4f44:21fe:e8b6:b329/64 scope global temporary dynamic 
       valid_lft 207713sec preferred_lft 49930sec
    inet6 2601:1c0:cf00:7950:53a:42d9:fd2e:927e/64 scope global temporary dynamic 
       valid_lft 192651sec preferred_lft 30476sec
    inet6 2601:1c0:cf00:7950:fcc4:d757:3666:73f7/64 scope global temporary dynamic 
       valid_lft 139092sec preferred_lft 27081sec
    inet6 2601:1c0:cf00:7950:2571:2168:f740:8192/64 scope global temporary dynamic 
       valid_lft 60517sec preferred_lft 22664sec
    inet6 2601:1c0:cf00:7950:1060:79d1:5b12:da2f/64 scope global temporary dynamic 
       valid_lft 135690sec preferred_lft 20922sec
    inet6 2601:1c0:cf00:7950:201f:e58a:672d:9dad/64 scope global temporary dynamic 
       valid_lft 129533sec preferred_lft 20783sec
    inet6 2601:1c0:cf00:7950:4c1a:460f:f254:e63f/64 scope global temporary dynamic 
       valid_lft 44930sec preferred_lft 19048sec
    inet6 2601:1c0:cf00:7950:6caa:fe23:3a22:b07e/64 scope global temporary dynamic 
       valid_lft 41316sec preferred_lft 18800sec
    inet6 2601:1c0:cf00:7950:70bd:c8b6:c6da:3a37/64 scope global temporary dynamic 
       valid_lft 41069sec preferred_lft 16396sec
    inet6 2001:468:d01:114:9d66:357d:196c:62d8/64 scope global temporary dynamic 
       valid_lft 534197sec preferred_lft 15747sec
    inet6 2001:468:d01:114:94a0:1926:37ca:b16f/64 scope global temporary dynamic 
       valid_lft 534161sec preferred_lft 15711sec
    inet6 2001:468:d01:114:2c39:747b:3f23:694/64 scope global temporary dynamic 
       valid_lft 534105sec preferred_lft 15655sec
    inet6 2601:1c0:cf00:7950:ec38:c2ff:cf58:4b95/64 scope global temporary deprecated dynamic 
       valid_lft 129404sec preferred_lft 0sec
    inet6 2601:1c0:cf00:7950:ea0e:df7a:6ea4:658b/64 scope global temporary deprecated dynamic 
       valid_lft 91365sec preferred_lft 0sec
    inet6 2601:1c0:cf00:7950:bc49:3267:c7f9:7337/64 scope global temporary deprecated dynamic 
       valid_lft 21111sec preferred_lft 0sec
    inet6 2601:1c0:cf00:7950:601:bac3:ce5d:fe68/64 scope global temporary deprecated dynamic 
       valid_lft 91215sec preferred_lft 0sec
    inet6 2601:1c0:cf00:7950:5541:d30f:3e90:6ec9/64 scope global temporary deprecated dynamic 
       valid_lft 82883sec preferred_lft 0sec
    inet6 2601:1c0:cf00:7950:ad93:d978:8865:d717/64 scope global temporary deprecated dynamic 
       valid_lft 79553sec preferred_lft 0sec
    inet6 2601:1c0:cf00:7950:fb99:85d2:cebb:b535/64 scope global temporary deprecated dynamic 
       valid_lft 75018sec preferred_lft 0sec
    inet6 2601:1c0:cf00:7950:52ca:1f29:8435:6655/64 scope global temporary deprecated dynamic 
       valid_lft 60517sec preferred_lft 0sec
    inet6 2601:1c0:cf00:7950:f387:1adf:dfcd:2afd/64 scope global temporary deprecated dynamic 
       valid_lft 44930sec preferred_lft 0sec
    inet6 2601:1c0:cf00:7950:97c3:8475:7a72:3783/64 scope global temporary deprecated dynamic 
       valid_lft 41316sec preferred_lft 0sec
    inet6 2601:1c0:cf00:7950:a9de:f6aa:e70d:676d/64 scope global temporary deprecated dynamic 
       valid_lft 41069sec preferred_lft 0sec
    inet6 2001:468:d01:114:daf4:dce2:5536:6c9c/64 scope global temporary deprecated dynamic 
       valid_lft 447850sec preferred_lft 0sec
    inet6 2001:468:d01:114:611a:ddd:dfab:606f/64 scope global temporary deprecated dynamic 
       valid_lft 447814sec preferred_lft 0sec
    inet6 2001:468:d01:114:35b6:5675:a237:27ae/64 scope global temporary deprecated dynamic 
       valid_lft 447758sec preferred_lft 0sec
    inet6 2601:1c0:cf00:7950:d351:443d:e988:3bfc/64 scope global temporary deprecated dynamic 
       valid_lft 21111sec preferred_lft 0sec
    inet6 fe80::d2ab:d5ff:febb:4b12/64 scope link 
       valid_lft forever preferred_lft forever
3: enp0s31f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether <mac-addr> brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.1/24 scope global enp0s31f6
       valid_lft forever preferred_lft forever
    inet 192.168.2.10/24 brd 192.168.2.255 scope global secondary dynamic noprefixroute enp0s31f6
       valid_lft 86156sec preferred_lft 75368sec
    inet6 fe80::9afa:9bff:fe34:7eb3/64 scope link 
       valid_lft forever preferred_lft forever
5: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 02:42:b2:cb:2c:dc brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever
    inet6 fe80::42:b2ff:fecb:2cdc/64 scope link 
       valid_lft forever preferred_lft forever
10: vboxnet0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 0a:00:27:00:00:00 brd ff:ff:ff:ff:ff:ff
    inet 192.168.56.1/24 scope global vboxnet0
       valid_lft forever preferred_lft forever
  1. output of ip addr from other device (ODROID C2 this time, but same issue)
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether <mac-addr> brd ff:ff:ff:ff:ff:ff
    inet 192.168.2.13/24 brd 192.168.2.255 scope global dynamic noprefixroute eth0
       valid_lft 86358sec preferred_lft 75558sec
    inet6 fe80::21e:6ff:fe33:fa18/64 scope link 
       valid_lft forever preferred_lft forever

Let me know if you have any idea what might be going on.

Thanks!
Oliver

@stanipintjuk
Copy link
Owner

Sorry for late response

I don't see an immediate problem anywhere. Your interface wlp0s20f3 looks interesting though. Are you on a VPN?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants