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

ip tables problem #72

Open
armann7303 opened this issue Jun 14, 2023 · 0 comments
Open

ip tables problem #72

armann7303 opened this issue Jun 14, 2023 · 0 comments

Comments

@armann7303
Copy link

سلام
وقتی از دستورات iptables برای تونل استفاده میکنم، نامیزون دیگه کار نمیکته و میگه این دستور وجود نداره.
دستور iptables ی که استفاده میکنم رو پایین میزارم
ممنون میشم برای حل این مشکل کمک کنین

sysctl net.ipv4.ip_forward=1
iptables -t nat -A PREROUTING -p tcp --dport 22 -j DNAT --to-destination IPIRAN
iptables -t nat -A PREROUTING -j DNAT --to-destination IPKHAREG
iptables -t nat -A POSTROUTING -j MASQUERADE

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

1 participant