mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 23:42:34 +00:00
socat-tun.html: not TCP but UDP
This commit is contained in:
parent
5033ec1ffd
commit
2bd2a04151
2 changed files with 6 additions and 2 deletions
4
CHANGES
4
CHANGES
|
@ -71,6 +71,10 @@ Porting:
|
||||||
Small correction in configure.ac makes Socat C99 able.
|
Small correction in configure.ac makes Socat C99 able.
|
||||||
Thanks to Florian Weimer from Red Hat for provinding a patch.
|
Thanks to Florian Weimer from Red Hat for provinding a patch.
|
||||||
|
|
||||||
|
Documentation:
|
||||||
|
socat-tun.html described TCP as tunnel medium but this does not keep
|
||||||
|
packet boundaries. Changed to UDP.
|
||||||
|
|
||||||
Testing:
|
Testing:
|
||||||
Idea: EXEC,SYSTEM addresses can keep packet boundaries when option
|
Idea: EXEC,SYSTEM addresses can keep packet boundaries when option
|
||||||
socktype=<val-of-SOCK_DGRAM>
|
socktype=<val-of-SOCK_DGRAM>
|
||||||
|
|
|
@ -53,14 +53,14 @@ the two socat instances; the TUN interfaces both have the same quality.
|
||||||
|
|
||||||
<h3>TUN Server</h3>
|
<h3>TUN Server</h3>
|
||||||
|
|
||||||
<span class="frame"><span class="shell">socat -d -d TCP-LISTEN:11443,reuseaddr TUN:192.168.255.1/24,up</span></span>
|
<span class="frame"><span class="shell">socat -d -d UDP-LISTEN:11443,reuseaddr TUN:192.168.255.1/24,up</span></span>
|
||||||
<p>After starting this command, socat will wait for a connection and then
|
<p>After starting this command, socat will wait for a connection and then
|
||||||
create a TUN pseudo network device with address 192.168.255.1; the bit number
|
create a TUN pseudo network device with address 192.168.255.1; the bit number
|
||||||
specifies the mask of the network that is pretended to be connected on this
|
specifies the mask of the network that is pretended to be connected on this
|
||||||
interface.</p>
|
interface.</p>
|
||||||
|
|
||||||
<h3>TUN Client</h3>
|
<h3>TUN Client</h3>
|
||||||
<span class="frame"><span class="shell">socat TCP:1.2.3.4:11443 TUN:192.168.255.2/24,up</span></span>
|
<span class="frame"><span class="shell">socat UDP:1.2.3.4:11443 TUN:192.168.255.2/24,up</span></span>
|
||||||
<p>This command should establish a connection to the server and create the TUN
|
<p>This command should establish a connection to the server and create the TUN
|
||||||
device on the client.</p>
|
device on the client.</p>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue