<div dir="ltr"><div class="gmail_extra">Thanks for reply.<br>That problem is resolve.<br>I am in new difficultly now. <br><br>Scenario.<br>We have three system say laptop L1, laptop L2 and raspberry pi (say pi).<br>L1 and L2 are connected with wireless interface(wlan0). L1 and pi connected from ethernet interface via ethernet cable.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Now,</div><div class="gmail_extra">L1 wlan  ip: 192.168.0.9 </div><div class="gmail_extra">L1 eth0 ip: 10.42.0.1</div><div class="gmail_extra">L2 wlan ip: 192.168.0.11</div><div class="gmail_extra">pi eth0 ip: 10.42.0.2<br>L1 wg0 ip: 10.0.0.6</div><div class="gmail_extra">L2 wg0 ip: 10.0.0.2</div><div class="gmail_extra">pi wg0 ip: 10.0.0.3<br><br>Now problem is L1 and pi executing ping command but L1 and L2 don't.</div><div class="gmail_extra"><br><============================================================================================></div><div class="gmail_extra"><font size="4"><b>Connectivity:</b></font><br>L1(eth0 : 10.42.0.1, wg0 : 10.0.0.6, wlan0 : 192.168.0.9)         ⇔      L2(wlan0 : 192.168.0.11,wg0 : 10.0.0.2 )</div><div class="gmail_extra"><br></div><div class="gmail_extra">⇕<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">pi (eth0:10.42.0.2,wg0:10.0.0.3)<br><=============================================================================================><br><font size="4"><b>Config file of L1:</b></font><br><div class="gmail_extra">[Interface]</div><div class="gmail_extra">PrivateKey = 6Ew/TWF8+ofWSnk1Mxmb+8D8Kx9ZIP2SjcxBKkmXnGo=</div><div class="gmail_extra">ListenPort = 12345</div><div class="gmail_extra">Address = <a href="http://10.0.0.6/24">10.0.0.6/24</a></div><div class="gmail_extra"><br></div><div class="gmail_extra">[Peer]</div><div class="gmail_extra">PublicKey = r+F7hbLjN3J4qc75V734DW2H28BVh8ydkCkK1Lf8blY=</div><div class="gmail_extra">Endpoint = <a href="http://192.168.0.11:12345">192.168.0.11:12345</a></div><div class="gmail_extra">AllowedIPs = <a href="http://10.0.0.0/24">10.0.0.0/24</a></div><div class="gmail_extra"><br></div><div class="gmail_extra">[Peer]</div><div class="gmail_extra">PublicKey = hkZUDze5qDILltpjoaYe+vG1qcYqTtKg8E3nawix92k=</div><div class="gmail_extra">Endpoint = <a href="http://10.42.0.2:12345">10.42.0.2:12345</a></div><div class="gmail_extra">AllowedIPs = <a href="http://10.0.0.0/24">10.0.0.0/24</a></div><=============================================================================================><br><b><font size="4">Config file of L2:</font></b></div><div class="gmail_extra"><span style="color:rgb(38,50,56);font-size:13px">[Interface]</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">PrivateKey = SICBGQ/vbASs5Xoo0AK1cMy9CbLpfxlCAD2Ap+TACEo=</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">ListenPort = 12345</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">Address = <a href="http://10.0.0.2/24">10.0.0.2/24</a></span><br style="color:rgb(38,50,56);font-size:13px"><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">[Peer]</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">PublicKey = duJE8ANouuvgL5IZM7oMWCdluvMlCvjZCDe8BJIVg34=</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">Endpoint = <a href="http://192.168.0.9:12345">192.168.0.9:12345</a></span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">AllowedIPs = <a href="http://10.0.0.0/24">10.0.0.0/24</a></span><br><=============================================================================================></div><div class="gmail_extra"><b><font size="4">Config file of pi:</font></b><br></div><div class="gmail_extra"><div class="gmail_extra">[Interface]</div><div class="gmail_extra">PrivateKey = kNFqEj9bB8CUx7mfGdc4UR1uYtj647X5HKdx7XPbGFA=</div><div class="gmail_extra">ListenPort = 12345</div><div class="gmail_extra">Address = <a href="http://10.0.0.3/24">10.0.0.3/24</a></div><div class="gmail_extra"><br></div><div class="gmail_extra">[Peer]</div><div class="gmail_extra">PublicKey = duJE8ANouuvgL5IZM7oMWCdluvMlCvjZCDe8BJIVg34=</div><div class="gmail_extra">Endpoint = <a href="http://10.42.0.1:12345">10.42.0.1:12345</a></div><div class="gmail_extra">AllowedIPs = <a href="http://10.0.0.0/24">10.0.0.0/24</a></div></div><div class="gmail_extra"><=============================================================================================></div><div class="gmail_extra"><b><font size="4">Terminal of L1:</font></b></div><div class="gmail_extra"><div class="gmail_extra">sahilgupta221@sahilgupta221-Inspiron-3543:/etc/wireguard$ sudo wg-quick up wg0</div><div class="gmail_extra">Warning: `/etc/wireguard/wg0.conf' is world accessible</div><div class="gmail_extra">[#] ip link add wg0 type wireguard</div><div class="gmail_extra">[#] wg setconf wg0 /dev/fd/63</div><div class="gmail_extra">[#] ip address add <a href="http://10.0.0.6/24">10.0.0.6/24</a> dev wg0</div><div class="gmail_extra">[#] ip link set mtu 1420 dev wg0</div><div class="gmail_extra">[#] ip link set wg0 up</div><div class="gmail_extra">sahilgupta221@sahilgupta221-Inspiron-3543:/etc/wireguard$ ping 10.0.0.2</div><div class="gmail_extra">PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.</div><div class="gmail_extra">^C</div><div class="gmail_extra">--- 10.0.0.2 ping statistics ---</div><div class="gmail_extra">294 packets transmitted, 0 received, 100% packet loss, time 293003ms</div><div class="gmail_extra"><br></div><div class="gmail_extra">sahilgupta221@sahilgupta221-Inspiron-3543:/etc/wireguard$ ping 10.0.0.3</div><div class="gmail_extra">PING 10.0.0.3 (10.0.0.3) 56(84) bytes of data.</div><div class="gmail_extra">64 bytes from <a href="http://10.0.0.3">10.0.0.3</a>: icmp_seq=1 ttl=64 time=13.1 ms</div><div class="gmail_extra">64 bytes from <a href="http://10.0.0.3">10.0.0.3</a>: icmp_seq=2 ttl=64 time=0.922 ms</div><div class="gmail_extra">64 bytes from <a href="http://10.0.0.3">10.0.0.3</a>: icmp_seq=3 ttl=64 time=0.934 ms</div><div class="gmail_extra">64 bytes from <a href="http://10.0.0.3">10.0.0.3</a>: icmp_seq=4 ttl=64 time=0.718 ms</div><div class="gmail_extra">64 bytes from <a href="http://10.0.0.3">10.0.0.3</a>: icmp_seq=5 ttl=64 time=0.949 ms</div><div class="gmail_extra">64 bytes from <a href="http://10.0.0.3">10.0.0.3</a>: icmp_seq=6 ttl=64 time=0.902 ms</div><div class="gmail_extra">64 bytes from <a href="http://10.0.0.3">10.0.0.3</a>: icmp_seq=7 ttl=64 time=0.829 ms</div><div class="gmail_extra">64 bytes from <a href="http://10.0.0.3">10.0.0.3</a>: icmp_seq=8 ttl=64 time=0.907 ms</div><div class="gmail_extra">^C</div><div class="gmail_extra">--- 10.0.0.3 ping statistics ---</div><div class="gmail_extra">8 packets transmitted, 8 received, 0% packet loss, time 7004ms</div><div class="gmail_extra">rtt min/avg/max/mdev = 0.718/2.410/13.120/4.048 ms</div><div class="gmail_extra">sahilgupta221@sahilgupta221-Inspiron-3543:/etc/wireguard$ </div></div><div class="gmail_extra"><=============================================================================================></div><div class="gmail_extra"><div class="gmail_extra"><b><font size="4">Terminal of L2</font></b>:</div><div class="gmail_extra"><span style="color:rgb(38,50,56);font-size:13px">sahilgupta221@sahilgupta221-900X3B-900X4B:/etc/wireguard$ sudo wg-quick up wg0</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">[#] ip link add wg0 type wireguard</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">[#] wg setconf wg0 /dev/fd/63</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">[#] ip address add <a href="http://10.0.0.2/24">10.0.0.2/24</a> dev wg0</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">[#] ip link set mtu 1420 dev wg0</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">[#] ip link set wg0 up</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">sahilgupta221@sahilgupta221-900X3B-900X4B:/etc/wireguard$ ping 10.0.0.6</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">PING 10.0.0.6 (10.0.0.6) 56(84) bytes of data.</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">^C</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">--- 10.0.0.6 ping statistics ---</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">246 packets transmitted, 0 received, 100% packet loss, time 250882ms</span><br style="color:rgb(38,50,56);font-size:13px"><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">sahilgupta221@sahilgupta221-900X3B-900X4B:/etc/wireguard$ ping 10.0.0.2</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">64 bytes from <a href="http://10.0.0.2">10.0.0.2</a>: icmp_seq=1 ttl=64 time=0.129 ms</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">64 bytes from <a href="http://10.0.0.2">10.0.0.2</a>: icmp_seq=2 ttl=64 time=0.074 ms</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">64 bytes from <a href="http://10.0.0.2">10.0.0.2</a>: icmp_seq=3 ttl=64 time=0.080 ms</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">64 bytes from <a href="http://10.0.0.2">10.0.0.2</a>: icmp_seq=4 ttl=64 time=0.077 ms</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">64 bytes from <a href="http://10.0.0.2">10.0.0.2</a>: icmp_seq=5 ttl=64 time=0.073 ms</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">64 bytes from <a href="http://10.0.0.2">10.0.0.2</a>: icmp_seq=6 ttl=64 time=0.072 ms</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">64 bytes from <a href="http://10.0.0.2">10.0.0.2</a>: icmp_seq=7 ttl=64 time=0.070 ms</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">64 bytes from <a href="http://10.0.0.2">10.0.0.2</a>: icmp_seq=8 ttl=64 time=0.075 ms</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">64 bytes from <a href="http://10.0.0.2">10.0.0.2</a>: icmp_seq=9 ttl=64 time=0.076 ms</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">^C</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">--- 10.0.0.2 ping statistics ---</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">9 packets transmitted, 9 received, 0% packet loss, time 8200ms</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">rtt min/avg/max/mdev = 0.070/0.080/0.129/0.020 ms</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">sahilgupta221@sahilgupta221-900X3B-900X4B:/etc/wireguard$ ping 10.0.0.3</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">PING 10.0.0.3 (10.0.0.3) 56(84) bytes of data.</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">^C</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">--- 10.0.0.3 ping statistics ---</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">2 packets transmitted, 0 received, 100% packet loss, time 1007ms</span><br style="color:rgb(38,50,56);font-size:13px"><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">sahilgupta221@sahilgupta221-900X3B-900X4B:/etc/wireguard$ sudo chmod 777 *</span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">[sudo] password for sahilgupta221: </span><br style="color:rgb(38,50,56);font-size:13px"><span style="color:rgb(38,50,56);font-size:13px">sahilgupta221@sahilgupta221-900X3B-900X4B:/etc/wireguard$ </span><br></div><div class="gmail_extra"><=============================================================================================></div></div><div class="gmail_extra"><div class="gmail_extra"><b><font size="4">Terminal of pi:</font></b></div><div class="gmail_extra"><div class="gmail_extra">pi@raspberrypi:~ $ sudo wg-quick up wg0</div><div class="gmail_extra">Warning: `/etc/wireguard/wg0.conf' is world accessible</div><div class="gmail_extra">[#] ip link add wg0 type wireguard</div><div class="gmail_extra">[#] wg setconf wg0 /dev/fd/63</div><div class="gmail_extra">[#] ip address add <a href="http://10.0.0.3/24">10.0.0.3/24</a> dev wg0</div><div class="gmail_extra">[#] ip link set mtu 1420 dev wg0</div><div class="gmail_extra">[#] ip link set wg0 up</div><div class="gmail_extra">pi@raspberrypi:~ $ ping 10.0.0.6</div><div class="gmail_extra">PING 10.0.0.6 (10.0.0.6) 56(84) bytes of data.</div><div class="gmail_extra">64 bytes from <a href="http://10.0.0.6">10.0.0.6</a>: icmp_seq=1 ttl=64 time=5015 ms</div><div class="gmail_extra">64 bytes from <a href="http://10.0.0.6">10.0.0.6</a>: icmp_seq=2 ttl=64 time=4009 ms</div><div class="gmail_extra">64 bytes from <a href="http://10.0.0.6">10.0.0.6</a>: icmp_seq=3 ttl=64 time=2969 ms</div><div class="gmail_extra">64 bytes from <a href="http://10.0.0.6">10.0.0.6</a>: icmp_seq=4 ttl=64 time=1929 ms</div><div class="gmail_extra">64 bytes from <a href="http://10.0.0.6">10.0.0.6</a>: icmp_seq=5 ttl=64 time=890 ms</div><div class="gmail_extra">64 bytes from <a href="http://10.0.0.6">10.0.0.6</a>: icmp_seq=6 ttl=64 time=0.829 ms</div><div class="gmail_extra">64 bytes from <a href="http://10.0.0.6">10.0.0.6</a>: icmp_seq=7 ttl=64 time=4.16 ms</div><div class="gmail_extra">64 bytes from <a href="http://10.0.0.6">10.0.0.6</a>: icmp_seq=8 ttl=64 time=0.883 ms</div><div class="gmail_extra">64 bytes from <a href="http://10.0.0.6">10.0.0.6</a>: icmp_seq=9 ttl=64 time=0.849 ms</div><div class="gmail_extra">64 bytes from <a href="http://10.0.0.6">10.0.0.6</a>: icmp_seq=10 ttl=64 time=4.08 ms</div><div class="gmail_extra">^C</div><div class="gmail_extra">--- 10.0.0.6 ping statistics ---</div><div class="gmail_extra">10 packets transmitted, 10 received, 0% packet loss, time 9245ms</div><div class="gmail_extra">rtt min/avg/max/mdev = 0.829/1482.655/5015.674/1805.291 ms, pipe 5</div><div class="gmail_extra">pi@raspberrypi:~ $ ^C</div><div class="gmail_extra">pi@raspberrypi:~ $ ifconfig</div><div class="gmail_extra">eth0      Link encap:Ethernet  HWaddr b8:27:eb:ab:0e:3b  </div><div class="gmail_extra">          inet addr:10.42.0.2  Bcast:10.42.0.255  Mask:255.255.255.0</div><div class="gmail_extra">          inet6 addr: fe80::ba27:ebff:feab:e3b/64 Scope:Link</div><div class="gmail_extra">          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1</div><div class="gmail_extra">          RX packets:638 errors:0 dropped:0 overruns:0 frame:0</div><div class="gmail_extra">          TX packets:316 errors:0 dropped:0 overruns:0 carrier:0</div><div class="gmail_extra">          collisions:0 txqueuelen:1000 </div><div class="gmail_extra">          RX bytes:73672 (71.9 KiB)  TX bytes:38774 (37.8 KiB)</div><div class="gmail_extra"><br></div><div class="gmail_extra">lo        Link encap:Local Loopback  </div><div class="gmail_extra">          inet addr:127.0.0.1  Mask:255.0.0.0</div><div class="gmail_extra">          inet6 addr: ::1/128 Scope:Host</div><div class="gmail_extra">          UP LOOPBACK RUNNING  MTU:65536  Metric:1</div><div class="gmail_extra">          RX packets:0 errors:0 dropped:0 overruns:0 frame:0</div><div class="gmail_extra">          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0</div><div class="gmail_extra">          collisions:0 txqueuelen:1 </div><div class="gmail_extra">          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)</div><div class="gmail_extra"><br></div><div class="gmail_extra">wg0       Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  </div><div class="gmail_extra">          inet addr:10.0.0.3  P-t-P:10.0.0.3  Mask:255.255.255.0</div><div class="gmail_extra">          UP POINTOPOINT RUNNING NOARP  MTU:1420  Metric:1</div><div class="gmail_extra">          RX packets:307 errors:0 dropped:0 overruns:0 frame:0</div><div class="gmail_extra">          TX packets:50 errors:0 dropped:0 overruns:0 carrier:0</div><div class="gmail_extra">          collisions:0 txqueuelen:1 </div><div class="gmail_extra">          RX bytes:25812 (25.2 KiB)  TX bytes:3988 (3.8 KiB)</div><div class="gmail_extra"><br></div><div class="gmail_extra">pi@raspberrypi:~ $ nano w</div><div class="gmail_extra">pi@raspberrypi:~ $ ^C</div><div class="gmail_extra">pi@raspberrypi:~ $ cd /etc/wireguard/</div><div class="gmail_extra">pi@raspberrypi:/etc/wireguard $ nano wg0.conf </div><div class="gmail_extra"><div class="gmail_extra">pi@raspberrypi:/etc/wireguard $ ping 10.0.0.2</div><div class="gmail_extra">PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.</div><div class="gmail_extra">^C</div><div class="gmail_extra">--- 10.0.0.2 ping statistics ---</div><div class="gmail_extra">23 packets transmitted, 0 received, 100% packet loss, time 22891ms</div></div></div><div class="gmail_extra"><=============================================================================================></div><div class="gmail_extra"><br></div><div class="gmail_extra"><b><font size="4">Summarry</font></b>:</div><div class="gmail_extra">Q1: How can I connectivity between L1 and L2?</div><div class="gmail_extra">Q2: Do I need to maintain two different wireguard interfaces for each LAN connection?<br>Q3: If answer to Q2 is yes then how L2 can ping to pi?<br>Q4: Why pi can't ping to L2?<br>Terminal response will verifies the problem.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><============================================================================================></div><div class="gmail_extra"><br></div><div class="gmail_extra"><b><font size="4">PS: Apologies for disturbing on weekends. Didn't realize weekend part. </font></b></div><div class="gmail_extra"><b><font size="4">These are summer holidays here. Each day is same to me.<br>Some of people like, you, Eric,Christian Hesse etc. are super experts on certain matters.<br>My selfishness is that I want the quick response to accelerate work.</font></b></div><div class="gmail_extra"><b><font size="4">So approached in this manner.<br><br></font></b></div><div class="gmail_extra"><b><font size="4">Not sure of duplicate part. I think I only send two messages.<br>One solution to problem and other requesting the tutorial.<br>Next time I will maintain single thread for particular problem.<br>Please reply whenever feel free.</font></b><br>😊<br><br>Sorry and Thanks again<br>Sahil Gupta</div><div class="gmail_extra"><br></div></div></div>