Jump to content
spinto

Whitelist Pulseway IP in iptables

Recommended Posts

I'm using the API to get a list of IP addresses in order to whitelist those IP's in the Linux iptables firewall rules.  This process works fine on an unrestricted server.  The server I'm working with is very restricted, so it isn't able to communicate with the api.  

For example, our pulseway address is http://company.pulseway.com which translates to 12.34.56.78

I added the following into iptables.save:

#Pulseway
-A INPUT -i eth0 -s 12.34.56.78 -j ACCEPT
-A OUTPUT -o eth0 -d 12.34.56.78 -j ACCEPT

I test outbound communications by running the following:

telnet 12.34.56.78 443 and it connects so I'm assuming it's the inbound communication.  My assumption is this isn't working because the IP returning the data is different than the IP that the data is sent to.  Let me know if I can get the list of IP's so I can whitelist in our iptables.

Thanks.

 

 

Share this post


Link to post
Share on other sites

Hi @spinto,

We use load balancers for high availability. Make sure you add all IP addresses that are resolved by the DNS lookup to your whitelist.

-Paul

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...