他的回复:
[hnsd@huawei ~]$ wwan dialer -s -i LTE0[hnsd@huawei ~]$ nft add rule dnat1 postrouting ip saddr 192.168.100.0/24 oifname LTE0 masqueradeError: Could not process rule: No such file or directoryadd rule dnat1 postrouting ip saddr 192.168.100.0/24 oifname LTE0 masquerade^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^invalid command, try "nft -h"[hnsd@huawei ~]$ nft add table dnat1The table name already exists.invalid command, try "nft -h"[hnsd@huawei ~]$ wwan dialer -s -i LTE0[hnsd@huawei ~]$ nft add table dnat1The table name already exists.invalid command, try "nft -h"[hnsd@huawei ~]$ nft add chain dnat1 postrouting { type nat hook postrouting priority 0 \; }[hnsd@huawei ~]$ nft add rule dnat1 postrouting ip saddr 192.168.100.0/24 oifname LTE0 masquerade[hnsd@huawei ~]$ ip addr show dev LTE0.Error: argument "LTE0." is wrong: "dev" value is invalid, cannot find the device[hnsd@huawei ~]$ ip addr show dev LTE01030: LTE0: mtu 1500 qdisc pfifo_fast state up mode default qlen 1000 link/LTE 64:2c:ac:c3:a2:94 brd ff:ff:ff:ff:ff:ff inet 10.16.244.12/8 brd 10.255.255.255 scope global LTE0 valid_lft forever preferred_lft forever inet6 fe80::662c:acff:fec3:a294/64 scope link valid_lft forever preferred_lft forever[hnsd@huawei ~]$ ping 8.8.8.8PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.64 bytes from 8.8.8.8: icmp_seq=1 ttl=114 time=3576 ms64 bytes from 8.8.8.8: icmp_seq=2 ttl=114 time=4543 ms重新插紧sim卡,有数据了,就是比较慢