Skip to content

Commit 58c5aa5

Browse files
author
Sungjin Han
committed
Edit post
1 parent 5ecd8a9 commit 58c5aa5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

_posts/2019-06-05-How-to-get-Pushbullet-notification-on-Fail2ban-ban-actions.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ tags:
55
- raspberry pi
66
- pushbullet
77
- golang
8+
- ipstack
89
published: true
910
---
1011

@@ -29,15 +30,15 @@ Visit [pushbullet](https://www.pushbullet.com/#settings/account) and [ipstack](h
2930

3031
### A. Install pb-send
3132

32-
**pb-send** is a small application that sends messages through pushbullet.
33+
[pb-send](https://github.com/meinside/pb-send) is a small application that sends messages through pushbullet.
3334

3435
{% highlight bash %}
3536
$ go get -u github.com/meinside/pb-send
3637
{% endhighlight %}
3738

3839
### B. Install ip2loc
3940

40-
**ip2loc** fetches geo locations of given ip addresses.
41+
[ip2loc](https://github.com/meinside/ipstack-go/tree/master/cmd/ip2loc) fetches geo locations of given ip addresses.
4142

4243
{% highlight bash %}
4344
$ go get -u github.com/meinside/ipstack-go/cmd/ip2loc
@@ -78,7 +79,7 @@ $ pb-send "test message"
7879
{% endhighlight %}
7980

8081

81-
**NOTE**: fail2band and PAM is run by root privilege,
82+
**NOTE**: fail2ban and PAM is run by root privilege,
8283

8384
so `pb-send.json` and `ip2loc.json` should also be placed in `/root/.config/`.
8485

@@ -169,7 +170,7 @@ Create `notify-ssh-login.sh` file that will be run by PAM:
169170

170171
{% gist 091376305f6577b142e1e55204f192c1 %}
171172

172-
Again, edit **LOCATOR** and **SENDER** paths to yours, and make it executable:
173+
Again, edit **LOCATOR** and **SENDER** paths to yours, and make the file executable:
173174

174175
{% highlight bash %}
175176
$ chmod +x /path/to/your/notify-ssh-login.sh

0 commit comments

Comments
 (0)