Vhtforums
AI Assistant
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
4,747 Views
Posts: 4
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@rashidmajeed)
Active Member
Joined: 2 years ago
[#358]

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: 697
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@brandon-lee)
Member
Joined: 16 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@rashidmajeed)
Active Member
Joined: 2 years 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. {blue}:inlove:  


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

Member
Posts: 697
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

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


Reply
Posts: 4
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@rashidmajeed)
Active Member
Joined: 2 years ago

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


Reply
Posts: 4
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@rashidmajeed)
Active Member
Joined: 2 years ago

I have also attached screenshots. Can you see?


Reply
Page 1 / 2