Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

پاک کردن یکی از رول ها #9

Closed
alphamanrays opened this issue Apr 2, 2024 · 1 comment
Closed

پاک کردن یکی از رول ها #9

alphamanrays opened this issue Apr 2, 2024 · 1 comment

Comments

@alphamanrays
Copy link

سلام وقت بخیر چطور میشه فقط یکی از رول ها یا پورت هارو حذف کرد ؟

@Incognito-Coder
Copy link
Owner

Incognito-Coder commented Apr 3, 2024

سلام
ابتدا دستور

iptables -S -t nat

رو بزنید تا لیست رول ها بیاد.
بعدش رول مورد نظر رو کپی کنید کاملا و بجای سوییچ A از D استفاده کنید
مثال؛

iptables -A OUTPUT -p tcp -m tcp --dport 1390 -j DNAT --to-destination 5.75.201.169:33615

به:

iptables -D OUTPUT -p tcp -m tcp --dport 1390 -j DNAT --to-destination 5.75.201.169:33615

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants