![](/img/trans.png)
[英]How to see traffic on a certain ip (there are multiple ips on the server)
I am trying to see how to see the amount of traffic for each IP in Python in mbs so I can remove the IP address route in Linux and save my network f ...
[英]How to see traffic on a certain ip (there are multiple ips on the server)
I am trying to see how to see the amount of traffic for each IP in Python in mbs so I can remove the IP address route in Linux and save my network f ...
[英]Suggestions for an implementation in Django
我在 django 上創建了一個博客,我需要使用 iptables 配置訪問權限。 我不知道該怎么做,任何人都可以指出一些材料嗎? 我正在考慮創建一個 function 可以傳遞一系列允許訪問的 ip 數字,但我不知道在 django 中的確切位置。 ...
[英]Calculate the traffic for specific port forwarded in the Linux
我有一台運行 Linux 的服務器:服務器 AI 希望將服務器 A 上的流量重定向到遠程服務器 b 實際上與轉發端口相同,我對轉發端口使用了以下命令。 轉發端口做得很好,我可以通過服務器 B 連接到服務器 B。現在我想知道服務器 A 的端口 150 上使用了多少流量? 如果服務器 A 不是路由器,我 ...
[英]Run python-iptables (iptc) as non-root user
我正在嘗試以非 root 用戶身份運行 python-iptables。 我的腳本是test.py: 我試過了: 將能力 CAP.NET_ADMIN 賦予/usr/bin/python2.7 (結果是: $ getcap /usr/bin/python2.7 /usr/bin/python2.7 ...
[英]Regex code to parse full Iptables log Python
我在iptables日志上有這個字符串,我想解析全部內容。 我的實際正則表達式解析90%,但我需要所有內容日志。 我的python正則表達式: 我也需要以下參數: 正則表達式結果: 日志字符串: 8月13日17:16:33 app-srv01內核:new ...
[英]Can't add rules to iptables, nothing gets committed
根據document:rules ,執行以下操作應在iptables規則列表中添加一個簡單規則: 但是,運行此示例將導致絕對零新規則。 我正在通過以下方法進行驗證: 在提交錯誤問題之前,我想知道是否有人遇到過這種問題,如果遇到這種情況,那么您如何解決它。 為了安全起見, ...
[英]Python iptables matches (uid-owner) error
我正在嘗試使用python-iptables庫創建以下規則。 這是我的代碼 我得到以下錯誤 如何使用此庫添加此類規則? ...
[英]python-iptables installation error
我正在嘗試為Python27安裝python-iptables ,但是在使用pip install python-iptables和easy_install python-iptables之后出現以下錯誤 libxtwrapper / wrapper.c(5):致命錯誤C1083:無法 ...
[英]Looking for a way to correcly generate an iptables-restore file
我正在構建防火牆規則生成器,我需要自動應用所有iptables規則。 唯一可以保證的方法是使用iptables恢復文件,該文件具有自己的語法。 生成此類文件的唯一有保證的方法是運行iptables命令,將其與iptables一起轉儲,然后保存並還原,這對於實時系統似乎是完全不可接受的。 有 ...
[英]bash script excutes multiple iptables chain
我正在使用以下腳本通過從whitelist.txt文件中過濾IP來應用iptables 。 如果列表中有多個IP,則iptables顯示多個鏈: 我的iptables -L -n輸出顯示為 如何避免重復,該腳本出了什么問題? ...