<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/net/socat/files/socat.init, branch master</title>
<subtitle>Mirror of packages feed</subtitle>
<id>https://git-03.infra.openwrt.org/feed/packages/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/feed/packages/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/'/>
<updated>2021-07-25T19:26:34Z</updated>
<entry>
<title>net: socat: add option user</title>
<updated>2021-07-25T19:26:34Z</updated>
<author>
<name>Paul Fertser</name>
</author>
<published>2021-07-25T18:19:42Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=8f0bd0b4fe8b5bced4e6e2f6b11082281ec5372d'/>
<id>urn:sha1:8f0bd0b4fe8b5bced4e6e2f6b11082281ec5372d</id>
<content type='text'>
Allow UCI configuration to specify username to run this service as.
Defaults to root.

Signed-off-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
</content>
</entry>
<entry>
<title>socat: allow more complex command line options</title>
<updated>2021-01-27T20:24:38Z</updated>
<author>
<name>Dobroslaw Kijowski</name>
</author>
<published>2021-01-27T19:50:51Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=218b7521aa5ba2a365190d016eac3dadb56cb1f3'/>
<id>urn:sha1:218b7521aa5ba2a365190d016eac3dadb56cb1f3</id>
<content type='text'>
Current implementation of socat's init service doesn't allow to run more
complex configurations. As an example there's no possibility to execute
following command:

  socat TCP-LISTEN:8080,fork,reuseaddr,bind=192.168.1.1 \
    EXEC:"/sbin/ip netns exec somenetns socat STDIO TCP:10.0.0.1:80"

In such command the first line is argv[1] and the second line is
argv[2]. SocatOptions config option is a string. As as a consequence of
this each word will be passed as a separate argv element. Socat won't be
able to parse arguments correctly.

In order to mitigate this issue, we can also accept SocatOptions as a
list of strings. Following config file will work correctly:

config socat 'tunnel_8080_into_somenetns'
	option enable '1'
	list SocatOptions 'TCP-LISTEN:8080,fork,reuseaddr,bind=192.168.1.1'
	list SocatOptions 'EXEC:"/sbin/ip netns exec somenetns socat STDIO TCP:10.0.0.1:80"'

While we're at it, pass stdout and stderr into logread.

Signed-off-by: Dobroslaw Kijowski &lt;dobo90@gmail.com&gt;
</content>
</entry>
<entry>
<title>socat: Update init script</title>
<updated>2019-02-03T11:59:43Z</updated>
<author>
<name>Jeffery To</name>
</author>
<published>2019-02-03T11:59:43Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=549bf0ec4448f8e52ba4563be61596ff1606eb4e'/>
<id>urn:sha1:549bf0ec4448f8e52ba4563be61596ff1606eb4e</id>
<content type='text'>
This replaces the use of uci_validate_section() with
uci_load_validate(), which removes the need to declare local variables
for every config option.

This also adds a service_triggers() function and removes some
unnecessary curly brackets.

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
</content>
</entry>
<entry>
<title>packages/socat: add init script</title>
<updated>2014-08-12T21:35:56Z</updated>
<author>
<name>Henning Schild</name>
</author>
<published>2014-08-12T20:17:57Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=8b67d48c475ad1e0e7c07ddeda944ee1ba6f2e5f'/>
<id>urn:sha1:8b67d48c475ad1e0e7c07ddeda944ee1ba6f2e5f</id>
<content type='text'>
Init script to start instances of socat for port-forwarding etc.

Signed-off-by: Henning Schild &lt;henning@hennsch.de&gt;
</content>
</entry>
</feed>
