小编cho*_*ovy的帖子

在 bash 中合并两个命令的输出

是否可以组合这两个命令的输出?

node ~/projects/trunk/index.js 
python ~/projects/trunk/run.py run
Run Code Online (Sandbox Code Playgroud)

这两个命令都没有退出,所以我不确定如何执行此操作。

bash io-redirection

136
推荐指数
6
解决办法
14万
查看次数

传入 ACCEPT all iptables 规则仍然出现

我在这里遵循本指南:http : //isalazyadmin.net/2009/07/02/configuring-a-basic-firewall-for-debian-linux/

我列出了 iptables,但我的服务器似乎仍在接受所有传入连接(即:bittorrent 对等方仍在连接,即使我不允许这些端口)。

/etc/iptables.rules

*filter

# This will allow all loopback (lo0) traffic and drop all traffic to 127/8
# that does not use lo0
-A INPUT -i lo -j ACCEPT
-A INPUT ! -i lo -d 127.0.0.0/8 -j REJECT

#  This accepts all already established connections
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

# This allows all outbound traffic
-A OUTPUT -j ACCEPT

# This will allow HTTP and HTTPS connections from anywhere, this …
Run Code Online (Sandbox Code Playgroud)

debian iptables

8
推荐指数
2
解决办法
2万
查看次数

如何将 rtorrent 与 socks5 代理一起使用?

如何获得 rtorrent 以使用 socks5 代理?我试图让socks5 与rtorrent 一起工作,但它似乎没有任何影响。

在端口 9800 上设置 socks5 代理:

ssh -ND 9800 user@otherhost
Run Code Online (Sandbox Code Playgroud)

在 .rtorrent.rc 中

http_proxy=127.0.0.7:9800
proxy_address=127.0.0.7:9800
Run Code Online (Sandbox Code Playgroud)

它无法从跟踪器下载任何数据。

Tracker: [Server returned nothing (no headers, no data)]
Run Code Online (Sandbox Code Playgroud)

当我查看http://www.checkmytorrentip.com/时,我的 IP 似乎没有使用来自“otherhost”的 IP

我也试过使用 tsocks rtorrent

server = 127.0.0.1
eserver_type = 5
server_port = 9800
Run Code Online (Sandbox Code Playgroud)

这显示我的 IP 来自“otherhost”,但几秒钟后 rtorrent 冻结。

我正在使用 rTorrent 0.9.2/0.13.2

proxy socks rtorrent

7
推荐指数
1
解决办法
2万
查看次数

使用 rsync 同步服务器和本地主机上的两个目录,但大小不同

我正在使用 rsync 将目录从服务器同步到本地主机:

rsync -avz --delete ./Stuff user@host:/Stuff
Run Code Online (Sandbox Code Playgroud)

这一切都很好,但是为什么当我在服务器和本地主机中键入“du -s”时我得到不同的数字?

debian rsync disk-usage

2
推荐指数
1
解决办法
2378
查看次数

标签 统计

debian ×2

bash ×1

disk-usage ×1

io-redirection ×1

iptables ×1

proxy ×1

rsync ×1

rtorrent ×1

socks ×1