Estou tentando fazer a ponte entre duas redes com uma conexão em cascata vether de softether. Eu quero fazer uma ponte de camada 3 entre as duas sub-redes. Até agora eu pude fazer o seguinte:
IPs:
As rotas estáticas foram configuradas nos dois extremos e posso acessar o computador do meu laptop em casa, mas não consigo acessá-lo pelo servidor.
alex@leptuncraft:~$ ifconfig
enp3s0 Link encap:Ethernet HWaddr fc:aa:14:1e:ff:18
inet addr:192.168.1.24 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::feaa:14ff:fe1e:ff18/64 Scope:Link
inet6 addr: 2a02:2f0a:4010:9f00:feaa:14ff:fe1e:ff18/64 Scope:Global
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:76823 errors:0 dropped:0 overruns:0 frame:0
TX packets:85884 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:29918914 (29.9 MB) TX bytes:29758121 (29.7 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:1557 errors:0 dropped:0 overruns:0 frame:0
TX packets:1557 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:207047 (207.0 KB) TX bytes:207047 (207.0 KB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:2870 (2.8 KB)
alex@leptuncraft:~$ ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
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: enp3s0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether fc:aa:14:1e:ff:18 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.24/24 brd 192.168.1.255 scope global enp3s0
valid_lft forever preferred_lft forever
inet6 2a02:2f0a:4010:9f00:feaa:14ff:fe1e:ff18/64 scope global mngtmpaddr dynamic
valid_lft 597sec preferred_lft 597sec
inet6 fe80::feaa:14ff:fe1e:ff18/64 scope link
valid_lft forever preferred_lft forever
3: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 100
link/none
inet 10.8.0.1 peer 10.8.0.2/32 scope global tun0
valid_lft forever preferred_lft forever
alex@leptuncraft:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default router.asus.com 0.0.0.0 UG 0 0 0 enp3s0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
10.8.0.2 * 255.255.255.255 UH 0 0 0 tun0
192.168.1.0 * 255.255.255.0 U 0 0 0 enp3s0
192.168.30.0 192.168.1.248 255.255.255.0 UG 0 0 0 enp3s0
alex@leptuncraft:~$ ping 192.168.1.248
PING 192.168.1.248 (192.168.1.248) 56(84) bytes of data.
From 192.168.1.24 icmp_seq=1 Destination Host Unreachable
From 192.168.1.24 icmp_seq=2 Destination Host Unreachable
From 192.168.1.24 icmp_seq=3 Destination Host Unreachable
Alguém poderia me ajudar? Agradecemos antecipadamente.
Tags networking ping softether