我的 nginx 在端口 81 上运行。我可以使用 telnet telnet 127.0.0.1 81,一切都很好。
但是当我尝试从我的 Mac(一个外部 IP 地址)telnet 到我的机器时,我只是收到这个错误:
telnet: connect to address 109.123.x.x: Connection refused
telnet: Unable to connect to remote host
Run Code Online (Sandbox Code Playgroud)
这是我的 /etc/nginx/sites-available/default 文件:
server {
listen 81; ## listen for ipv4; this line is default and implied
#listen [::]:80 default ipv6only=on; ## listen for ipv6
root /usr/share/nginx/www;
index index.html index.htm;
# Make site accessible from http://localhost/
server_name 109.123.x.x;
location / {
# First attempt to serve request as file, then
# …Run Code Online (Sandbox Code Playgroud) 我的老板想知道 HP DL320 G5 是否启用了 NUMA。我试过在互联网上搜索,但找不到任何具体信息。
有谁知道这个服务器是否适合运行 NUMA 应用程序?
我正在尝试在 DEFCON 数据包上使用 tcpdump。
这是我正在使用的命令:
tcpdump -qns 0 -X -r ulogd.eth0.pcap
这是我得到的输出:
10:39:12.356410 IP 192.168.103.2.3101 > 192.168.102.2.80: tcp 0
0x0000: 4500 0028 0557 4000 7f06 a823 c0a8 6702 E..(.W@....#..g.
0x0010: c0a8 6602 0c1d 0050 2463 0fbe 8854 e419 ..f....P$c...T..
0x0020: 5010 4296 71ec 0000 P.B.q...
10:39:27.223199 IP 192.168.103.2.3101 > 192.168.102.2.80: tcp 52
0x0000: 4500 005c 055e 4000 7f06 a7e8 c0a8 6702 E..\.^@.......g.
0x0010: c0a8 6602 0c1d 0050 2463 0fbe 8854 e419 ..f....P$c...T..
0x0020: 5018 4296 0d82 0000 4745 5420 2f2f …Run Code Online (Sandbox Code Playgroud) 我在运行此命令以模拟 500 毫秒的网络延迟和 100 毫秒的标准偏差后:
tc qdisc add dev eth2 root netem delay 500ms 100ms
问题是,我忘记怎么取消这个命令了!我的电脑目前有一个可怕的延迟,我不知道如何摆脱它!
提前谢谢了,
我正在尝试通过 TinyProxy 提供一些页面。
当我将 Firefox 代理设置更改为:
本地主机:8888(是的,我正在使用隧道),我得到的只是一个白屏?
当我注释掉这一行时:
Listen x.x.x.x (the address of my server)
Run Code Online (Sandbox Code Playgroud)
我收到 403 错误:
Access denied
The administrator of this proxy has not configured it to service requests from your host.
Generated by tinyproxy version 1.8.1.
Run Code Online (Sandbox Code Playgroud)
至少当我收到此错误时,我确信我的隧道正在工作......
但是,有人可以帮我配置 TinyProxy 吗?
提前谢谢了,
我无法弄清楚 iptables,我对网络也不太了解,我真的希望有人能帮助我。
我有一个服务器,它有两个关联的 IP 地址:1.1.1.1 和 2.2.2.2
运行 Ubuntu 10.04
这是我的 ifconfig:
eth0 Link encap:Ethernet HWaddr 00:16:3e:xx:xx:xx
inet addr:1.1.1.1 Bcast:xxx.xxx.xxx.xxx Mask:xxx.xxx.xxx.xxx
inet6 addr: xxxxxxxxxxxxxxxxxxxxxxxx Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8601280 errors:0 dropped:0 overruns:0 frame:0
TX packets:2520243 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1736805563 (1.7 GB) TX bytes:412953236 (412.9 MB)
Interrupt:11
eth0:0 Link encap:Ethernet HWaddr 00:16:3e:xx:xx:xx
inet addr:2.2.2.2 Bcast:xxx.xxx.xxx.xxx Mask:xxx.xxx.xxx.xxx
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 …Run Code Online (Sandbox Code Playgroud) linux ×2
networking ×2
hp ×1
hp-proliant ×1
ip ×1
ip-address ×1
iproute ×1
iptables ×1
latency ×1
nginx ×1
numa ×1
proxy ×1
tcpdump ×1
tinyproxy ×1
ubuntu ×1