如何在我的计算机中设置 ufw,以便使我的计算机在 lubuntu 中成为服务器,以及如何在 ufw 中进行端口转发,我正在使用 apache 作为服务器,它不适用于公共 ip 地址,我尝试了很多次打开端口,但端口都没有打开,我使用 wifi wlp3s0 创建了我的 ip 地址
sudo ufw allow in on wlp3s0 to any port 80
当我使用 ifconfig 时,它像这样
enp0s25 Link encap:Ethernet HWaddr 00:1c:25:9f:48:f0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:20 Memory:fc600000-fc620000
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:1891 errors:0 dropped:0 overruns:0 frame:0
TX packets:1891 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:170176 (170.1 KB) TX bytes:170176 (170.1 KB)
wlp3s0 Link encap:Ethernet HWaddr 00:21:6b:c3:68:80
inet addr:192.168.0.120 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::edfd:b52f:835c:ecd4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:55892 errors:0 dropped:0 overruns:0 frame:0
TX packets:45661 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30953048 (30.9 MB) TX bytes:7073333 (7.0 MB)
无论我在 ufw 上做什么,它都不起作用