Slack image_url not public - slack-api

I want to send an url image (as preview) on post message.
The "image-server" is private and is accessible only via LAN and don't require auth.
I try to push this json
{"text": "Example Message", "attachments": [{"title": "Example
message","text": "...","image_url": "http://192.168.0.100:5000/preview/myimg.jpg" }] }
... and not work.
I want to see the preview (on slack) when i'm on LAN network.
How i can do that?
Thanks

This can not work. Slack is on the Internet and not able to access a server on your private LAN, which is apparently behind a firewall / NAT router (as the IP address suggests).
If you want Slack to show images from your local image server you need to open it to the Internet, so that Slack can get access to the server.
There are many ways on how to do that, e.g. most routers provide a feature that opens access to local servers from the Internet. However, that would also open your local network for potential attacks from the Internet, so I that risk needs to be considered when evaluating this option.
If you image server is a PC a more secure way for opening it to the Internet (and Slack) is to use a VPN tunnel like ngrok. That is btw. also the recommended approach in the official Slack tutorial for connecting a local development machine with Slack.

Related

Connecting using SnowSQL denied 403 error

I am trying to configure JDBC but kept getting the same error I am getting using snowsql:
250001 (08001): Failed to connect to DB. Verify the account name is correct: JG3409.canada-central.azure.snowflakecomputing.com:443. 000403: 403: HTTP 403: Forbidden
If the error message is unclear, enable logging using -o log_level=DEBUG and see the log to find out the cause. Contact support for further help.
Goodbye!
I have configured the config file, and I have double checked the account, company, region, reset password to only use alphanumeric.
I have used both forms of the URL
The only possibility is that I am using a trial account, but I can't imagine that this would limit external non-browser connections?
I use a simple user/password, I have whitelisted my IP and I don't have a problem with a proxy or a firewall. I can successfully connect using a browser.. using:
https://app.snowflake.com/canada-central.azure/jg63409
Important contents of the config file:
[connections]
accountname=JG3409
#accountname=uegxydq-pz20606
region=canada-central.azure
username=ASHSNOWFLAKE
any ideas?
Your account is not JG3409 but JG63409 based on this link:
https://app.snowflake.com/canada-central.azure/jg63409
Try in your browser:
https://jg63409.canada-central.azure.snowflakecomputing.com
I found out using snowcd that my computer could not connect via my home router.
When I used my personal hotspot on my (5G) phone, snowcd passed all the tests immediately. The problem then arose how to adjust the network security policy to allow a CIDR block of network addresses through since my phone uses a new address every time I connect, and I can't edit the policy to allow my phone while connected via my phone (for obvious reasons)
Catch 22
123.45.0.0/16 is not accepted in the new Snowflake UI, and 0.0.0.0 doesn't work for me, but the documentation gave me a clue.. the new UI doesn't separate by commas, so I switched to the old UI and voila!
Incidentally the OLD UI uses the same URL as SnowSQL so I picked up my error in my account number there as well (although I should have seen it earlier).
Diabolical but thanks #Sergiu too!

Is it possible to monitor the visited websites with each user or IP using Mikrotik device and Freeradius server

I'm using Mikrotik device to make a Hotspot service and using Freeradius running on Centos server ( running on different server ) for AAA ( Authentication , Authorization and Accounting )
Now, What i need is to log every single website that certain user visited ( monitoring web surfing )
actually, I i don't know if it is possible with Freeradius or using Mikrotik services
This can be done with a web proxy.
You can use either integrated mikrotik proxy feature by enabling proxy (https://wiki.mikrotik.com/wiki/Manual:IP/Proxy#Transparent_proxy_configuration_example) and log proxy activity (https://wiki.mikrotik.com/wiki/Manual:System/Log#Example:Webproxy_logging).
You can use also proxy program like Squid on your CentOS box to save CPU and storage resources on your Mikrotik router.
Another option, you can also use a program called "conntrack" on your CentOS to, as the name says, keep track of all connections. This can include any connections, not only HTTP requests. Of course, all internet traffic must pass through the CentOS box.

OpenVBX not calling

I have OpenVBX and just bought a new Twilio number. OpenVBX has been installed with the sid and token of the Active Twilio account. I can send text messages but not receive them. And I can't make any calls or receive them. I tried adding the number to a flow under Admin >> Number >> Numbers used on other Domains: hide. But get an error message.
VoiceFallbackUrl is not valid: http://localhost/openVBX/twilio-OpenVBX-5c97301-V2/fallback/voice.php
Spec:
Wamp Server on local computer.
PHP Version 5.5.29
cURL support enabled
cURL Information 7.42.1
Ricky from Twilio here.
In order for Twilio to access your website it needs to be available on a publicly accessible URL. We're pretty big fans of ngrok as a means of tunneling our localhost to a publicly accessible URL for this purpose. If you spin up ngrok and access OpenVBX through that ngrok URL it should resolve the "VoiceFallbackUrl is not valid" error you're receiving.
Let me know if that helps!

Sending email to the "outside world" from localhost using hMailServer and Gmail SMTP on Windows 7

I am not sure if this is technically possible but I am running a AMPPS box on Windows 7 as my localhost and I have configured it with Gmail SMTP (ssl://smtp.gmail.com) to send out email from my PHP scripts like joomla, wordpress, socialengine, etc.
Now I installed and setup hMailServer and I am able to send and receive emails locally but was wondering if there was a simple way that I could configure my localhost and email server to send out email to outside world (e.g. #hotmail.com or #yahoo.com receipients) using Gmail SMTP?
Currently with my setup, I am only able to receive installation confirmation emails from AMPPS but nothing else like "Forget Password" or "User Registration Forms" work.
Any ideas without getting too deep into code modification?
The simple answer is no, or rather it is far from easy, especially from a home based server.
And the reason is that your IP address amd mail server domain will not be considered as a ligitimate mail server by most of the legitimate mailservers you will be trying to send mail to, and they will just reject it as yet another spam server.
Have a look at these:
https://serverfault.com/questions/72559/setting-up-a-mail-server-best-practices-to-be-recognized-as-legitimate
How to conduct legitimate email campaigns

Blackberry Push notification : Java.io.IOException:Network operation(Subscribe)failed. Make sure that Content Provider Url is accessible

I am working on blackberry Push Notification and facing a big issue while registering from the device. I'm getting the Exception:
Java.io.IOException:Network operation(Subscribe)failed. Make sure that Content Provider Url is accessible..
I go through this guide and set up all things according to it.
However I am unable to register. My tomcat server is running and I can access content provider URL from my computer and the same from device's browser.
PC URL is: https:/loaclhost:8443/sample-push-initiator
I changed local host to IP address of my Computer. and can access it over WiFi.
Please help me regarding this.
Your push initiator URL must be publicly accessible from the internet to be accessible from your device. Using localhost or any local IP address (e.g. 192.168.0.2) won't work.
You'll have to set up your router to forward traffic on port 8443 to your PC's local IP.
You should ensure that this URL is accessible from your blackberry normal web browser (not the hotspot browser) before trying with the sample push app.

Resources