Google cloud add firewall rule to receive traffic from only certain IP's












0















I am trying to add a firewall rule to allow traffic from certain IP's, I selected Source filter as IP ranges, and in Source IP ranges I am adding (My IP/32), but the thing is the rule is not allowing my IP to receive the traffic.



Can anyone please tell me what I am doing wrong.










share|improve this question

























  • We need more info, please share some screenshots of the firewall configuration and the networking configuration of the machine using this firewall. Check the networking tags and the ports.

    – Luís Brito
    Nov 18 '18 at 17:56











  • @LuísBrito ports are opened because if I will allow 0.0.0.0/0 then I am receiving traffic, but changing it to (MY IP/32) isn't allowing my IP to receive the traffic.

    – Sudhanshu Gaur
    Nov 18 '18 at 17:58











  • Assuming everything in the firewall configuration is correct, maybe the problem is a clashing of different rules with different priorities. Check this -> serverfault.com/questions/901364/…

    – Luís Brito
    Nov 18 '18 at 18:00











  • @LuísBrito Yes I have already checked the post, but it is not working :(

    – Sudhanshu Gaur
    Nov 18 '18 at 18:03











  • I would try to investigate the public IP you are trying to use, if all configurations are right, maybe Google is getting another IP from this machine. Check for routers, proxies in between the connection. Maybe using some tool like -> ipify.org

    – Luís Brito
    Nov 18 '18 at 18:07
















0















I am trying to add a firewall rule to allow traffic from certain IP's, I selected Source filter as IP ranges, and in Source IP ranges I am adding (My IP/32), but the thing is the rule is not allowing my IP to receive the traffic.



Can anyone please tell me what I am doing wrong.










share|improve this question

























  • We need more info, please share some screenshots of the firewall configuration and the networking configuration of the machine using this firewall. Check the networking tags and the ports.

    – Luís Brito
    Nov 18 '18 at 17:56











  • @LuísBrito ports are opened because if I will allow 0.0.0.0/0 then I am receiving traffic, but changing it to (MY IP/32) isn't allowing my IP to receive the traffic.

    – Sudhanshu Gaur
    Nov 18 '18 at 17:58











  • Assuming everything in the firewall configuration is correct, maybe the problem is a clashing of different rules with different priorities. Check this -> serverfault.com/questions/901364/…

    – Luís Brito
    Nov 18 '18 at 18:00











  • @LuísBrito Yes I have already checked the post, but it is not working :(

    – Sudhanshu Gaur
    Nov 18 '18 at 18:03











  • I would try to investigate the public IP you are trying to use, if all configurations are right, maybe Google is getting another IP from this machine. Check for routers, proxies in between the connection. Maybe using some tool like -> ipify.org

    – Luís Brito
    Nov 18 '18 at 18:07














0












0








0


1






I am trying to add a firewall rule to allow traffic from certain IP's, I selected Source filter as IP ranges, and in Source IP ranges I am adding (My IP/32), but the thing is the rule is not allowing my IP to receive the traffic.



Can anyone please tell me what I am doing wrong.










share|improve this question
















I am trying to add a firewall rule to allow traffic from certain IP's, I selected Source filter as IP ranges, and in Source IP ranges I am adding (My IP/32), but the thing is the rule is not allowing my IP to receive the traffic.



Can anyone please tell me what I am doing wrong.







google-cloud-platform






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 27 '18 at 9:21









Rubén C.

820112




820112










asked Nov 18 '18 at 17:37









Sudhanshu GaurSudhanshu Gaur

2,56322145




2,56322145













  • We need more info, please share some screenshots of the firewall configuration and the networking configuration of the machine using this firewall. Check the networking tags and the ports.

    – Luís Brito
    Nov 18 '18 at 17:56











  • @LuísBrito ports are opened because if I will allow 0.0.0.0/0 then I am receiving traffic, but changing it to (MY IP/32) isn't allowing my IP to receive the traffic.

    – Sudhanshu Gaur
    Nov 18 '18 at 17:58











  • Assuming everything in the firewall configuration is correct, maybe the problem is a clashing of different rules with different priorities. Check this -> serverfault.com/questions/901364/…

    – Luís Brito
    Nov 18 '18 at 18:00











  • @LuísBrito Yes I have already checked the post, but it is not working :(

    – Sudhanshu Gaur
    Nov 18 '18 at 18:03











  • I would try to investigate the public IP you are trying to use, if all configurations are right, maybe Google is getting another IP from this machine. Check for routers, proxies in between the connection. Maybe using some tool like -> ipify.org

    – Luís Brito
    Nov 18 '18 at 18:07



















  • We need more info, please share some screenshots of the firewall configuration and the networking configuration of the machine using this firewall. Check the networking tags and the ports.

    – Luís Brito
    Nov 18 '18 at 17:56











  • @LuísBrito ports are opened because if I will allow 0.0.0.0/0 then I am receiving traffic, but changing it to (MY IP/32) isn't allowing my IP to receive the traffic.

    – Sudhanshu Gaur
    Nov 18 '18 at 17:58











  • Assuming everything in the firewall configuration is correct, maybe the problem is a clashing of different rules with different priorities. Check this -> serverfault.com/questions/901364/…

    – Luís Brito
    Nov 18 '18 at 18:00











  • @LuísBrito Yes I have already checked the post, but it is not working :(

    – Sudhanshu Gaur
    Nov 18 '18 at 18:03











  • I would try to investigate the public IP you are trying to use, if all configurations are right, maybe Google is getting another IP from this machine. Check for routers, proxies in between the connection. Maybe using some tool like -> ipify.org

    – Luís Brito
    Nov 18 '18 at 18:07

















We need more info, please share some screenshots of the firewall configuration and the networking configuration of the machine using this firewall. Check the networking tags and the ports.

– Luís Brito
Nov 18 '18 at 17:56





We need more info, please share some screenshots of the firewall configuration and the networking configuration of the machine using this firewall. Check the networking tags and the ports.

– Luís Brito
Nov 18 '18 at 17:56













@LuísBrito ports are opened because if I will allow 0.0.0.0/0 then I am receiving traffic, but changing it to (MY IP/32) isn't allowing my IP to receive the traffic.

– Sudhanshu Gaur
Nov 18 '18 at 17:58





@LuísBrito ports are opened because if I will allow 0.0.0.0/0 then I am receiving traffic, but changing it to (MY IP/32) isn't allowing my IP to receive the traffic.

– Sudhanshu Gaur
Nov 18 '18 at 17:58













Assuming everything in the firewall configuration is correct, maybe the problem is a clashing of different rules with different priorities. Check this -> serverfault.com/questions/901364/…

– Luís Brito
Nov 18 '18 at 18:00





Assuming everything in the firewall configuration is correct, maybe the problem is a clashing of different rules with different priorities. Check this -> serverfault.com/questions/901364/…

– Luís Brito
Nov 18 '18 at 18:00













@LuísBrito Yes I have already checked the post, but it is not working :(

– Sudhanshu Gaur
Nov 18 '18 at 18:03





@LuísBrito Yes I have already checked the post, but it is not working :(

– Sudhanshu Gaur
Nov 18 '18 at 18:03













I would try to investigate the public IP you are trying to use, if all configurations are right, maybe Google is getting another IP from this machine. Check for routers, proxies in between the connection. Maybe using some tool like -> ipify.org

– Luís Brito
Nov 18 '18 at 18:07





I would try to investigate the public IP you are trying to use, if all configurations are right, maybe Google is getting another IP from this machine. Check for routers, proxies in between the connection. Maybe using some tool like -> ipify.org

– Luís Brito
Nov 18 '18 at 18:07












1 Answer
1






active

oldest

votes


















0














you only want to allow one IP, not a full range, that is something really different...



Try removing the /32 behind the IP address this will only allow your ip, no need of more to make it work.






share|improve this answer
























  • Tried that also but isn't working.

    – Sudhanshu Gaur
    Nov 18 '18 at 21:19













Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53363717%2fgoogle-cloud-add-firewall-rule-to-receive-traffic-from-only-certain-ips%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














you only want to allow one IP, not a full range, that is something really different...



Try removing the /32 behind the IP address this will only allow your ip, no need of more to make it work.






share|improve this answer
























  • Tried that also but isn't working.

    – Sudhanshu Gaur
    Nov 18 '18 at 21:19


















0














you only want to allow one IP, not a full range, that is something really different...



Try removing the /32 behind the IP address this will only allow your ip, no need of more to make it work.






share|improve this answer
























  • Tried that also but isn't working.

    – Sudhanshu Gaur
    Nov 18 '18 at 21:19
















0












0








0







you only want to allow one IP, not a full range, that is something really different...



Try removing the /32 behind the IP address this will only allow your ip, no need of more to make it work.






share|improve this answer













you only want to allow one IP, not a full range, that is something really different...



Try removing the /32 behind the IP address this will only allow your ip, no need of more to make it work.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 18 '18 at 21:14









night-goldnight-gold

669413




669413













  • Tried that also but isn't working.

    – Sudhanshu Gaur
    Nov 18 '18 at 21:19





















  • Tried that also but isn't working.

    – Sudhanshu Gaur
    Nov 18 '18 at 21:19



















Tried that also but isn't working.

– Sudhanshu Gaur
Nov 18 '18 at 21:19







Tried that also but isn't working.

– Sudhanshu Gaur
Nov 18 '18 at 21:19






















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53363717%2fgoogle-cloud-add-firewall-rule-to-receive-traffic-from-only-certain-ips%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Xamarin.form Move up view when keyboard appear

Post-Redirect-Get with Spring WebFlux and Thymeleaf

Anylogic : not able to use stopDelay()