Cannot make call out and then in through iptables using React app on serveriptables port forward...
Why does John Bercow say “unlock” after reading out the results of a vote?
Failed to fetch jessie backports repository
Bash method for viewing beginning and end of file
How can I get through very long and very dry, but also very useful technical documents when learning a new tool?
What is the oldest known work of fiction?
What defines a dissertation?
What to do with wrong results in talks?
Generic lambda vs generic function give different behaviour
Will it be accepted, if there is no ''Main Character" stereotype?
Print name if parameter passed to function
Can a monster with multiattack use this ability if they are missing a limb?
Using parameter substitution on a Bash array
Opposite of a diet
Should my PhD thesis be submitted under my legal name?
How does residential electricity work?
Is expanding the research of a group into machine learning as a PhD student risky?
How was Earth single-handedly capable of creating 3 of the 4 gods of chaos?
Why "be dealt cards" rather than "be dealing cards"?
What would be the benefits of having both a state and local currencies?
How does it work when somebody invests in my business?
Why did Kant, Hegel, and Adorno leave some words and phrases in the Greek alphabet?
Ways to speed up user implemented RK4
Can I Retrieve Email Addresses from BCC?
Where in the Bible does the greeting ("Dominus Vobiscum") used at Mass come from?
Cannot make call out and then in through iptables using React app on server
iptables port forward forwardingAllow traffic on one port from one IP address with iptablesFsockOpen problem with Iptables inside OpenVZ VMUnable to make outbound SNMP connections when IPTables is enablediptables allow http incoming connections, state NEW, ESTABLISHEDForward http traffic to another ip address with iptablesTrying to make iptables stateless is causing unforeseen filteringIptables port forwarding for specific host dd-wrt/tomatoiptables fails to load nf_conntrack_ftpiptables outgoing default policy is accept, but some ports appear blocked
I have a React web app (static hosted) on Apache HTTPS at https://virtualyou.io. Within the web app, I make a call for an email contact form to http://virtualyou.io:3001/api/form to send an email. This works from the React app on my laptop. I'm quite sure it's my iptables but since Outbound is open and inbound supports 3001, I'm not sure why it works from outside the server running the React app. And, it also works from Postman to http://virtualyou.io:3001/api/form. But, from inside it does not.
Here's my iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:https
ACCEPT tcp -- anywhere anywhere tcp dpt:3001
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Can someone please help me understand why from the web app at https://virtualyou.io/contact ... the internal api call to the node application at port 3001 does not work?
Thanks in advance,
David
iptables virtualhost apache2
New contributor
add a comment |
I have a React web app (static hosted) on Apache HTTPS at https://virtualyou.io. Within the web app, I make a call for an email contact form to http://virtualyou.io:3001/api/form to send an email. This works from the React app on my laptop. I'm quite sure it's my iptables but since Outbound is open and inbound supports 3001, I'm not sure why it works from outside the server running the React app. And, it also works from Postman to http://virtualyou.io:3001/api/form. But, from inside it does not.
Here's my iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:https
ACCEPT tcp -- anywhere anywhere tcp dpt:3001
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Can someone please help me understand why from the web app at https://virtualyou.io/contact ... the internal api call to the node application at port 3001 does not work?
Thanks in advance,
David
iptables virtualhost apache2
New contributor
What is the problem you are having?
– Michael Hampton♦
5 mins ago
this url server-dns:3001/api/form will accept a POST from Postman and send me an email from Amazon SES. I make the same exact URL POST from within a web application running on server-dns/contact (with an HTML form for POST). It does not send an email. Also, if I run the same web app from my laptop (not the server) it also accepts the URL POST and sends me an email. I think it's iptables related.
– David Whitehurst
1 min ago
add a comment |
I have a React web app (static hosted) on Apache HTTPS at https://virtualyou.io. Within the web app, I make a call for an email contact form to http://virtualyou.io:3001/api/form to send an email. This works from the React app on my laptop. I'm quite sure it's my iptables but since Outbound is open and inbound supports 3001, I'm not sure why it works from outside the server running the React app. And, it also works from Postman to http://virtualyou.io:3001/api/form. But, from inside it does not.
Here's my iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:https
ACCEPT tcp -- anywhere anywhere tcp dpt:3001
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Can someone please help me understand why from the web app at https://virtualyou.io/contact ... the internal api call to the node application at port 3001 does not work?
Thanks in advance,
David
iptables virtualhost apache2
New contributor
I have a React web app (static hosted) on Apache HTTPS at https://virtualyou.io. Within the web app, I make a call for an email contact form to http://virtualyou.io:3001/api/form to send an email. This works from the React app on my laptop. I'm quite sure it's my iptables but since Outbound is open and inbound supports 3001, I'm not sure why it works from outside the server running the React app. And, it also works from Postman to http://virtualyou.io:3001/api/form. But, from inside it does not.
Here's my iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT tcp -- anywhere anywhere tcp dpt:https
ACCEPT tcp -- anywhere anywhere tcp dpt:3001
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
Can someone please help me understand why from the web app at https://virtualyou.io/contact ... the internal api call to the node application at port 3001 does not work?
Thanks in advance,
David
iptables virtualhost apache2
iptables virtualhost apache2
New contributor
New contributor
edited 5 mins ago
David Whitehurst
New contributor
asked 6 mins ago
David WhitehurstDavid Whitehurst
11
11
New contributor
New contributor
What is the problem you are having?
– Michael Hampton♦
5 mins ago
this url server-dns:3001/api/form will accept a POST from Postman and send me an email from Amazon SES. I make the same exact URL POST from within a web application running on server-dns/contact (with an HTML form for POST). It does not send an email. Also, if I run the same web app from my laptop (not the server) it also accepts the URL POST and sends me an email. I think it's iptables related.
– David Whitehurst
1 min ago
add a comment |
What is the problem you are having?
– Michael Hampton♦
5 mins ago
this url server-dns:3001/api/form will accept a POST from Postman and send me an email from Amazon SES. I make the same exact URL POST from within a web application running on server-dns/contact (with an HTML form for POST). It does not send an email. Also, if I run the same web app from my laptop (not the server) it also accepts the URL POST and sends me an email. I think it's iptables related.
– David Whitehurst
1 min ago
What is the problem you are having?
– Michael Hampton♦
5 mins ago
What is the problem you are having?
– Michael Hampton♦
5 mins ago
this url server-dns:3001/api/form will accept a POST from Postman and send me an email from Amazon SES. I make the same exact URL POST from within a web application running on server-dns/contact (with an HTML form for POST). It does not send an email. Also, if I run the same web app from my laptop (not the server) it also accepts the URL POST and sends me an email. I think it's iptables related.
– David Whitehurst
1 min ago
this url server-dns:3001/api/form will accept a POST from Postman and send me an email from Amazon SES. I make the same exact URL POST from within a web application running on server-dns/contact (with an HTML form for POST). It does not send an email. Also, if I run the same web app from my laptop (not the server) it also accepts the URL POST and sends me an email. I think it's iptables related.
– David Whitehurst
1 min ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
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
});
}
});
David Whitehurst is a new contributor. Be nice, and check out our Code of Conduct.
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%2fserverfault.com%2fquestions%2f960166%2fcannot-make-call-out-and-then-in-through-iptables-using-react-app-on-server%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
David Whitehurst is a new contributor. Be nice, and check out our Code of Conduct.
David Whitehurst is a new contributor. Be nice, and check out our Code of Conduct.
David Whitehurst is a new contributor. Be nice, and check out our Code of Conduct.
David Whitehurst is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Server Fault!
- 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%2fserverfault.com%2fquestions%2f960166%2fcannot-make-call-out-and-then-in-through-iptables-using-react-app-on-server%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
What is the problem you are having?
– Michael Hampton♦
5 mins ago
this url server-dns:3001/api/form will accept a POST from Postman and send me an email from Amazon SES. I make the same exact URL POST from within a web application running on server-dns/contact (with an HTML form for POST). It does not send an email. Also, if I run the same web app from my laptop (not the server) it also accepts the URL POST and sends me an email. I think it's iptables related.
– David Whitehurst
1 min ago