मैंने पूर्ण नेटफिल्टर कार्यक्षमता सक्षम के साथ एंड्रॉइड एमुलेटर के लिए लिनक्स संकलित किया है। और स्रोत से एंड्रॉइड के निर्माण के बाद एक iptables बाइनरी मिला।आईपॉडबल्स में iptables त्रुटि: iptables-save और iptables- काम नहीं कर रहा है
जब मैं एमुलेटर
मैं नीचे सफलतापूर्वक की तरह आदेश पर अमल कर सकते हैं करने के लिए इस द्विआधारी धक्का।
iptables -L
iptables -F
iptables -A INPUT -s www.google.com -j DROP
इस त्रुटि के साथ:
# # iptables -L
getsockopt for multiport failed strangely: No such file or directory
getsockopt for multiport failed strangely: No such file or directory
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
#
और
# iptables -A INPUT -s www.google.com -j DROP
getsockopt for multiport failed strangely: No such file or directory
getsockopt for multiport failed strangely: No such file or directory
FIX ME! implement getgrnam() bionic/libc/bionic/stubs.c:344
लेकिन कम से कम ऊपर बताए गए आदेशों वे काम करते हैं!
लेकिन मैं त्रुटि
iptables-save: not found
मेरी कॉन्फ़िग फ़ाइल
CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m
समस्या क्या है .. में कह पाने जब मैं
iptables-save or
iptables-restore
कोशिश ?? और मैं एंड्रॉइड में पूर्ण iptables कार्यक्षमता कैसे सक्षम कर सकता हूं या मैं वर्तमान सक्रिय iptables नियमों को सुरक्षित रूप से कैसे सहेज सकता हूं और अगली रीबूट के समय उन्हें पुनः लोड कर सकता हूं।
कृपया मदद करें। धन्यवाद!
मैं यकीन है कि 'iptables-save' और' iptables-restore' अलग binaries कर रहे हैं, कर रहा हूँ इसलिए क्यों वे रिक्त स्थान (, के रूप में विरोध किया, उदाहरण के लिए करने के लिए 'iptables -L', जो करता है) शामिल नहीं है । – eldarerathis
असल में मैं iptables-save या iptables-वाक्य को एक वाक्य के रूप में लिखना चाहता था। माफ़ कीजिये। – Preetam