Skip to content

Commit

Permalink
updating everything
Browse files Browse the repository at this point in the history
  • Loading branch information
mc36 committed Jul 9, 2022
1 parent 5c5f223 commit 1311d64
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 605 deletions.
21 changes: 12 additions & 9 deletions Dockerfile
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
FROM alpine
FROM debian
MAINTAINER Frederic LOUI <frederic.loui@@renater.fr>

RUN apt-get update
RUN apt-get -f -y dist-upgrade
RUN apt-get -f -y install wget unzip net-tools libpcap-dev openssl iproute2 dpdk openvswitch-switch ethtool default-jre-headless
RUN apt-get clean

RUN mkdir -p /opt/freertr
RUN mkdir -p /opt/freertr/bin
RUN mkdir -p /opt/freertr/src
RUN mkdir -p /opt/freertr/run

WORKDIR /opt/freertr/

RUN wget http://freerouter.nop.hu/rtr.zip
RUN wget http://freerouter.nop.hu/rtr.jar
RUN wget http://freerouter.nop.hu/rtr.tar
RUN wget http://www.freertr.org/rtr.zip
RUN wget http://www.freertr.org/rtr.jar
RUN wget http://www.freertr.org/rtr.ver
RUN wget http://www.freertr.org/rtr-`uname -m`.tar
RUN mv ./rtr.jar ./bin
RUN mv ./rtr.ver ./bin
RUN unzip ./rtr.zip -d /opt/freertr/src
WORKDIR /opt/freertr/bin
RUN tar xvf ../rtr.tar
RUN tar xvf ../rtr-`uname -m`.tar

COPY . /opt/freertr/

RUN apk update
RUN apk upgrade
RUN apk add --no-cache libpcap-dev ethtool openjdk11-jre-headless

WORKDIR /opt/freertr/

VOLUME ./run:/opt/freertr/run
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ int eth3 eth 0000.1111.3333 127.0.0.1 20011 127.0.0.1 20010
...
```

For more detail please refer to FreerTr homepage: http://freerouter.nop.hu/ <br>
For more detail please refer to FreerTr homepage: http://www.freertr.org/ <br>

### freertr-sw.txt
It is the FreerTr router configuration. <br>
For more detail please refer to FreerTr homepage: http://freerouter.nop.hu/ <br>
For more detail please refer to FreerTr homepage: http://www.freertr.org/ <br>

## How to run FreerTr container
There is 2 processes that is run inside this container: <br>
Expand Down
5 changes: 2 additions & 3 deletions run/freertr-hw.txt
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
hwid emu
port 60000 61000
int eth2 eth 0000.1111.2222 127.0.0.1 22706 127.0.0.1 22705
line tty1 127.0.0.1 21001 127.0.0.1 21002
int eth1 eth 0000.1111.2222 127.0.0.1 22706 127.0.0.1 22705
!line tty1 127.0.0.1 21001 127.0.0.1 21002
tcp2vrf 2323 v1 23
tcp2vrf 8080 v1 80
def alias test bash command attach shell1 socat - exec:sh,ctty,pty,stderr
Loading

0 comments on commit 1311d64

Please sign in to comment.