Metallb external Ip...
 
Notifications
Clear all

Metallb external Ip for nginx is not working in the browser with ip and host mapping in hosts file but curl works.

7 Posts
2 Users
1 Reactions
34 Views
Posts: 4
Topic starter
(@rashidmajeed)
Active Member
Joined: 3 days ago

Hi brandon, I am using metallb with nginx ingress. My ingress got an external ip. I exposed my deployment with a service of clusterip. As i am using kind cluster using wsl linux subsystem I gave ip pool for metlab L2 pools the ip range from the kind cluster ip address. I took DNS host from ingress to map the external ip into the /etc/host in esl. Curl to the external ip is working in wsl terminal but in the browser not working. Any suggestion what is blocking.

6 Replies
Brandon Lee
Posts: 405
Admin
(@brandon-lee)
Member
Joined: 14 years ago

@rashidmajeed welcome to the forums! One thing I have seen with WSL is that you need to enable a proxy connection to allow the traffic ingress.ย 

Add a proxy connection to my WSL network traffic

To do that, I ran this code. Be sure to replace with your own IPs needed and port

netsh interface portproxy add v4tov4 listenport=80 listenaddress=10.1.149.166 connectport=80 connectaddress=127.0.0.1

Let me know if you can try this and see if it works. Thanks Rashid.

Reply
Posts: 4
Topic starter
(@rashidmajeed)
Active Member
Joined: 3 days ago

Thanks alot Brandon. I am very much happy and so lucky that finally I got a proper forum where I can ask DevOps Specialists about my doubts. I am gonna share this forum to my closest groups who can also subscribe it. I will check your proposed fix. Inlove ย 

Reply
1 Reply
Brandon Lee
Admin
(@brandon-lee)
Joined: 14 years ago

Member
Posts: 405

@rashidmajeed That is amazing! Thank you, definitely spread the word and let me know what you find. Thanks again!

Reply
Posts: 4
Topic starter
(@rashidmajeed)
Active Member
Joined: 3 days ago

Hi, brandon I tried but still same result. On curl I am getting result.

Reply
Posts: 4
Topic starter
(@rashidmajeed)
Active Member
Joined: 3 days ago

I have also attached screenshots. Can you see?

Reply
Page 1 / 2