@@ -126,8 +126,8 @@ autossh -M 0 -R dev:80:localhost:8000 tuns.sh
126
126
# # Easy (`-o Tunnel=point-to-point`)
127
127
128
128
Using `tuns`, you have the ability to tunnel UDP traffic without any external
129
- binary, meaning all using SSH. This makes use of the SSH tunneling
130
- functionality and a `tun` interface. To get started, you need to follow a few steps :
129
+ binary, meaning all using SSH. This makes use of the SSH tunneling functionality
130
+ and a `tun` interface. To get started, you need to follow a few steps :
131
131
132
132
1. Start some UDP service that you want to forward. For example, a simple socat
133
133
echo server :
@@ -136,8 +136,8 @@ functionality and a `tun` interface. To get started, you need to follow a few st
136
136
socat -v PIPE udp-recvfrom:5553,fork
137
137
` ` `
138
138
139
- 2. SSH into tuns requesting a `tun` interface with the information of where
140
- the service is running. This needs to be done as root. Replace
139
+ 2. SSH into tuns requesting a `tun` interface with the information of where the
140
+ service is running. This needs to be done as root. Replace
141
141
` local-ip-of-machines-main-interface` with the ip address of the main
142
142
interface for proper routing.
143
143
@@ -161,10 +161,11 @@ functionality and a `tun` interface. To get started, you need to follow a few st
161
161
162
162
# # Hard (`-o Tunnel=ethernet`)
163
163
164
- You can also use an ethernet tunnel for UDP forwarding. This makes a `tap` interface.
165
- This is considered "hard mode" since you'll also need to handle ARP. We don't process
166
- ARP packets, but we expect you to be an expert to be able to make this work! The `SRC`
167
- interface `MAC` is `00:00:00:00:00:01`, while the `DST` interface `MAC` is `00:00:00:00:00:02`
164
+ You can also use an ethernet tunnel for UDP forwarding. This makes a `tap`
165
+ interface. This is considered "hard mode" since you'll also need to handle ARP.
166
+ We don't process ARP packets, but we expect you to be an expert to be able to
167
+ make this work! The `SRC` interface `MAC` is `00:00:00:00:00:01`, while the
168
+ ` DST` interface `MAC` is `00:00:00:00:00:02`
168
169
169
170
1. Start some UDP service that you want to forward. For example, a simple socat
170
171
echo server :
@@ -173,8 +174,8 @@ interface `MAC` is `00:00:00:00:00:01`, while the `DST` interface `MAC` is `00:0
173
174
socat -v PIPE udp-recvfrom:5553,fork
174
175
` ` `
175
176
176
- 2. SSH into tuns requesting a `tap` interface with the information of where
177
- the service is running. This needs to be done as root. Replace
177
+ 2. SSH into tuns requesting a `tap` interface with the information of where the
178
+ service is running. This needs to be done as root. Replace
178
179
` local-ip-of-machines-main-interface` with the ip address of the main
179
180
interface for proper routing.
180
181
0 commit comments