Google cloud add firewall rule to receive traffic from only certain IP's
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
|
show 7 more comments
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
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
|
show 7 more comments
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
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
google-cloud-platform
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
|
show 7 more comments
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
|
show 7 more comments
1 Answer
1
active
oldest
votes
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.
Tried that also but isn't working.
– Sudhanshu Gaur
Nov 18 '18 at 21:19
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Tried that also but isn't working.
– Sudhanshu Gaur
Nov 18 '18 at 21:19
add a comment |
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.
Tried that also but isn't working.
– Sudhanshu Gaur
Nov 18 '18 at 21:19
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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