iptables Rule Not Working as Expected #10993
Unanswered
RonaldFletcher
asked this question in
Q&A
Replies: 1 comment
-
Do I need to turn on any configurations, or is this what k3s is designed for? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Environmental Info:
K3s Version: v1.28.14+k3s1
Node(s) CPU architecture, OS, and Version: 5.15.0-122-generic #132-Ubuntu SMP Thu Aug 29 13:45:52 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Describe the bug:
I'm encountering an issue when trying to add an IPTABLES NAT rule. The command I executed is:
Despite no errors when applying the rule, it doesn't seem to be working. Connections to port 10351 are not being forwarded to 192.168.50.132:10003 as expected.
Steps To Reproduce:
Add the following NAT rule:
Try to access the service via port 10351.
Observe that the request is not properly redirected.
Expected behavior:
Connections to port 10351 should be redirected to 192.168.50.132:10003
Actual behavior:
No redirection occurs, and the service behind 192.168.50.132:10003 remains inaccessible via port 10351.
Additional context / logs:
Beta Was this translation helpful? Give feedback.
All reactions