Última atividade 8 months ago

xl revisou este gist 8 months ago. Ir para a revisão

1 file changed, 9 insertions, 7 deletions

dnsmasq one-liners.md

@@ -1,11 +1,13 @@
1 - quick and dirty dns + dhcp
1 + dns and dhcp
2 2 ```sh
3 - dnsmasq --no-daemon --port 53 \
4 - --dhcp-range 192.168.255.100,192.168.255.200 --dhcp-leasefile /dev/null \
5 - --bind-interfaces --interface eth0 --listen-address 192.168.200.1
3 + dnsmasq --no-daemon --port=53 \
4 + --dhcp-range=192.168.255.100,192.168.255.200 --dhcp-leasefile=/dev/null \
5 + --bind-interfaces --interface=eth0 --listen-address=192.168.200.1
6 6 ```
7 7
8 - quick and dirty tftp
8 + tftp only
9 9 ```sh
10 - dnsmasq --no-daemon --port 0 --enable-tftp --tftp-root /path/to/wherever \
11 - --bind-interfaces --interface eth0 --listen-address 192.168.200.1
10 + dnsmasq --no-daemon --port=0 \
11 + --enable-tftp --tftp-root=/path/to/wherever \
12 + --bind-interfaces --interface=eth0 --listen-address=192.168.200.1
13 + ```

xl revisou este gist 9 months ago. Ir para a revisão

1 file changed, 2 insertions, 2 deletions

dnsmasq one-liners.md

@@ -1,11 +1,11 @@
1 1 quick and dirty dns + dhcp
2 2 ```sh
3 - sudo dnsmasq --no-daemon --port 53 \
3 + dnsmasq --no-daemon --port 53 \
4 4 --dhcp-range 192.168.255.100,192.168.255.200 --dhcp-leasefile /dev/null \
5 5 --bind-interfaces --interface eth0 --listen-address 192.168.200.1
6 6 ```
7 7
8 8 quick and dirty tftp
9 9 ```sh
10 - sudo dnsmasq --no-daemon --port 0 --enable-tftp --tftp-root /path/to/wherever \
10 + dnsmasq --no-daemon --port 0 --enable-tftp --tftp-root /path/to/wherever \
11 11 --bind-interfaces --interface eth0 --listen-address 192.168.200.1

xl revisou este gist 10 months ago. Ir para a revisão

1 file changed, 4 insertions, 4 deletions

dnsmasq one-liners.md

@@ -1,11 +1,11 @@
1 1 quick and dirty dns + dhcp
2 2 ```sh
3 3 sudo dnsmasq --no-daemon --port 53 \
4 - --dhcp-range=192.168.255.100,192.168.255.200 --dhcp-leasefile=/dev/null \
5 - --bind-interfaces --interface eth0 --listen-address=192.168.200.1
4 + --dhcp-range 192.168.255.100,192.168.255.200 --dhcp-leasefile /dev/null \
5 + --bind-interfaces --interface eth0 --listen-address 192.168.200.1
6 6 ```
7 7
8 8 quick and dirty tftp
9 9 ```sh
10 - sudo dnsmasq --no-daemon --port 0 --enable-tftp --tftp-root=/path/to/wherever \
11 - --bind-interfaces --interface eth0 --listen-address=192.168.200.1
10 + sudo dnsmasq --no-daemon --port 0 --enable-tftp --tftp-root /path/to/wherever \
11 + --bind-interfaces --interface eth0 --listen-address 192.168.200.1

xl revisou este gist 10 months ago. Ir para a revisão

1 file changed, 1 insertion, 1 deletion

dnsmasq one-liners.md

@@ -7,5 +7,5 @@ sudo dnsmasq --no-daemon --port 53 \
7 7
8 8 quick and dirty tftp
9 9 ```sh
10 - sudo dnsmasq --no-daemon --port=0 --enable-tftp --tftp-root=/path/to/wherever \
10 + sudo dnsmasq --no-daemon --port 0 --enable-tftp --tftp-root=/path/to/wherever \
11 11 --bind-interfaces --interface eth0 --listen-address=192.168.200.1

xl revisou este gist 10 months ago. Ir para a revisão

1 file changed, 8 insertions, 4 deletions

dnsmasq one-liners renomeado para dnsmasq one-liners.md

@@ -1,7 +1,11 @@
1 - # quick and dirty dns + dhcp
2 - sudo dnsmasq --no-daemon --port 53 --dhcp-range=192.168.255.100,192.168.255.200 --dhcp-leasefile=/dev/null \
1 + quick and dirty dns + dhcp
2 + ```sh
3 + sudo dnsmasq --no-daemon --port 53 \
4 + --dhcp-range=192.168.255.100,192.168.255.200 --dhcp-leasefile=/dev/null \
3 5 --bind-interfaces --interface eth0 --listen-address=192.168.200.1
6 + ```
4 7
5 - # quick and dirty tftp
8 + quick and dirty tftp
9 + ```sh
6 10 sudo dnsmasq --no-daemon --port=0 --enable-tftp --tftp-root=/path/to/wherever \
7 - --bind-interfaces --interface eth0 --listen-address=192.168.200.1
11 + --bind-interfaces --interface eth0 --listen-address=192.168.200.1

xl revisou este gist 1 year ago. Ir para a revisão

1 file changed, 7 insertions

dnsmasq one-liners (arquivo criado)

@@ -0,0 +1,7 @@
1 + # quick and dirty dns + dhcp
2 + sudo dnsmasq --no-daemon --port 53 --dhcp-range=192.168.255.100,192.168.255.200 --dhcp-leasefile=/dev/null \
3 + --bind-interfaces --interface eth0 --listen-address=192.168.200.1
4 +
5 + # quick and dirty tftp
6 + sudo dnsmasq --no-daemon --port=0 --enable-tftp --tftp-root=/path/to/wherever \
7 + --bind-interfaces --interface eth0 --listen-address=192.168.200.1
Próximo Anterior