Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM debian:bullseye-20230208-slim

WORKDIR /opt

RUN apt update

RUN apt install -y \
git autoconf automake pkg-config gcc g++ libssl-dev make ppp-dev pppoe

COPY . ./


RUN ./autogen.sh && \
./configure --prefix=/usr/local --sysconfdir=/etc --disable-dependency-tracking && \
make && make install

ENTRYPOINT ["/usr/local/bin/openfortivpn"]

CMD ["-c", "/etc/openfortivpn/config"]
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,25 @@ For other distros, you'll need to build and install from source:

Finally, install runtime dependency `ppp` or `pppd`.

Docker
----------------

Build

```bash
docker build . -t openforticlient
```
Run
```bash
docker run --privileged --cap-add=NET_ADMIN --net host -d -v config:/etc/openfortivpn/config openforticlient
```

or with parameters

```bash
docker run --privileged --cap-add=NET_ADMIN --net host -d -v config:/etc/openfortivpn/config openforticlient -c /etc/openfortivpn/config --set-dns=0 --pppd-use-peerdns=1
```

Running as root?
----------------

Expand Down