Displaying 15 results from an estimated 15 matches for "dest_port".
2012 Oct 22
1
[PATCH] Implement remote dynamic TCP forwarding
...L_OPENING:
case SSH_CHANNEL_CONNECTING:
case SSH_CHANNEL_DYNAMIC:
+ case SSH_CHANNEL_RDYNAMIC:
case SSH_CHANNEL_OPEN:
case SSH_CHANNEL_X11_OPEN:
case SSH_CHANNEL_INPUT_DRAINING:
@@ -1033,14 +1038,23 @@ channel_decode_socks4(Channel *c, fd_set *readset, fd_set *writeset)
u_int16_t dest_port;
struct in_addr dest_addr;
} s4_req, s4_rsp;
+ Buffer *input, *output;
+
+ if (c->type == SSH_CHANNEL_RDYNAMIC) {
+ input = &c->output;
+ output = &c->input;
+ } else {
+ input = &c->input;
+ output = &c->output;
+ }
debug2("channel %d: decode socks4...
2003 Jun 25
1
socks5 support for -D
...H_SOCKS5_IPV6 0x04
+#define SSH_SOCKS5_CONNECT 0x01
+#define SSH_SOCKS5_SUCCESS 0x00
+
+static int
+channel_decode_socks5(Channel *c, fd_set * readset, fd_set * writeset)
+{
+ struct {
+ u_int8_t version;
+ u_int8_t command;
+ u_int8_t reserved;
+ u_int8_t atyp;
+ } s5_req, s5_rsp;
+ u_int16_t dest_port;
+ u_char *p, dest_addr[255+1];
+ int i, have, found, nmethods, addrlen, af;
+
+ debug2("channel %d: decode socks5", c->self);
+ p = buffer_ptr(&c->input);
+ if (p[0] != 0x05)
+ return -1;
+ have = buffer_len(&c->input);
+ if (!(c->flags & SSH_SOCKS5_AUTHDONE)) {...
2020 May 18
1
ether-wake
...package as there are
different forms of WOL and their packages.
One way is using UDP port 9 as you said. I was using the script below to
do so (using socat) but I can tell you that this method doesn't work for
all devices.
#!/bin/bash
HWADDR="$1"
DEST_IP="255.255.255.255"
DEST_PORT="9"
# The magic packet is a broadcast frame containing anywhere within its
payload
# 6 bytes of all ones (FF FF FF FF FF FF in hexadecimal), followed by sixteen
# repetitions of the target computer's 48-bit MAC address.
MAGIC="\xFF\xFF\xFF\xFF\xFF\xFF"
for ((CNT=0; CNT <...
2002 May 17
19
Shorewall 1.3 Beta 1
The 3.1 Beta is now available -- check the Shorewall home page.
--
Tom Eastep \ Shorewall - iptables made easy
AIM: tmeastep \ http://www.shorewall.net
ICQ: #60745924 \ teastep@shorewall.net
2020 May 18
3
ether-wake
On Sun, 2020-05-17 at 20:25 -0600, R C wrote:
> Ok, I get that, found it before; "typically sent as a UDP datagram to
> port 0, 7 or 9, or directly over Ethernet as EtherType 0x0842"
>
>
> The keyword being 'typically', but what is it that ether-wake actually
> uses/does? (I need to forward a WOL packet to a different
>
> vlan on some Cisco
2017 Feb 03
5
[PATCH 0/5] Support socket activation in virt-p2v.
As the subject says, support socket activation in virt-p2v.
I have added upstream support for socket activation to nbdkit already:
https://github.com/libguestfs/nbdkit/commit/7ff39d028c6359f5c0925ed2cf4a2c4c751af2e4
I posted a patch for qemu-nbd, still waiting on more reviews for that
one:
https://www.mail-archive.com/qemu-devel@nongnu.org/msg427246.html
I tested this against old and new qemu
2008 Jul 01
1
[PATCH] SOCKS4A support
...len);
+ len++; /* trailing '\0' */
+ if (len > have)
+ fatal("channel %d: decode socks4a: len %d > have %d",
+ c->self, len, have);
+ strlcpy(c->path, p, sizeof(c->path));
+ buffer_consume(&c->input, len);
+ }
c->host_port = ntohs(s4_req.dest_port);
debug2("channel %d: dynamic request: socks4 host %s port %u command %u",
- c->self, host, c->host_port, s4_req.command);
+ c->self, c->path, c->host_port, s4_req.command);
if (s4_req.command != 1) {
debug("channel %d: cannot handle: socks4 cn %d&qu...
2002 May 10
1
Patch for SOCKS4A in OpenSsh
..._socks4(Channel *c, fd_set
strlcpy(username, p, sizeof(username));
buffer_consume(&c->input, len);
buffer_consume(&c->input, 1); /* trailing '\0' */
- host = inet_ntoa(s4_req.dest_addr);
- strlcpy(c->path, host, sizeof(c->path));
c->host_port = ntohs(s4_req.dest_port);
+
+ /* check for socks4a vs socks4 */
+ if (0 == (s4_req.dest_addr.s_addr & htonl(IN_CLASSC_NET))) {
+ /*
+ * is client using socks4a? if the first three octets of the
IP
+ * are zero, ie 0.0.0.1, then we get the host name from
after user
+ */
+ have = buffer_len(&c->input);...
2006 Jul 26
15
Rails without a primary key
I''ve been trying to use Rails on a database where the biggest
datawarehouse-style table doesn''t have a primary key. It really
doesn''t make sense and just adds extra unnecessary space. I do have,
however, a column that I normally use to search on (IP) that returns
many rows. The table also references several other tables through
rails-friendly foreign keys.
Simple AR
2019 Dec 04
2
v2.3.9 released
...uot;client_ip", "ip" and "port".
?? * Mail storage events: Removed "service" field.
???? Use "service:<name>" category instead.
?? * HTTP client connection events: Renamed "host" to "dest_host" and
???? "port" to "dest_port"
* auth: Drop Postfix socketmap support. It hasn't been working
? with recent Postfix versions for a while now.
* push-notification-lua: The "subject" field is now decoded to UTF8
? instead of kept as MIME-encoded.
+ push-notification-lua: Added new "from_address", &quo...
2019 Dec 04
2
v2.3.9 released
...uot;client_ip", "ip" and "port".
?? * Mail storage events: Removed "service" field.
???? Use "service:<name>" category instead.
?? * HTTP client connection events: Renamed "host" to "dest_host" and
???? "port" to "dest_port"
* auth: Drop Postfix socketmap support. It hasn't been working
? with recent Postfix versions for a while now.
* push-notification-lua: The "subject" field is now decoded to UTF8
? instead of kept as MIME-encoded.
+ push-notification-lua: Added new "from_address", &quo...
2007 May 23
6
Brainstorming - how to manage Shorewall rules
.... . .9999
action => "ACCEPT", # Can be any one of the shorewall actions
source => "net", # Again, shorewall syntax for the source
dest => "$FW", # more shorewall syntax
proto => "tcp", # tcp, udp, icmp, etc
dest_port => 22, # destination ports
}
Of course, all the possible fields would need to be handled, but not
necessarily required. We would need to build some way of defining
where the rules file (and others) is, and possibly provide a mechanism
to run "shorewall verify" and if it fails, don...
2017 Jan 26
3
[PATCH 0/3] p2v: Allow nbdkit as an alternative NBD server.
qemu-nbd is a fine NBD server. However it's not easy to compile a
reliably working version on RHEL 5.
This patch series allows nbdkit to be used as an alternative (qemu-nbd
is still the default).
Rich.
2001 Nov 06
13
OpenSSH 3.0
OpenSSH 3.0 has just been released. It will be available from the
mirrors listed at http://www.openssh.com/ shortly.
OpenSSH is a 100% complete SSH protocol version 1.3, 1.5 and 2.0
implementation and includes sftp client and server support.
This release contains many portability bug-fixes (listed in the
ChangeLog) as well as several new features (listed below).
We would like to thank the
2019 Sep 10
3
[PATCH 0/2] Remove virt-p2v from libguestfs
Now that virt-p2v has its own repository [1] and releases [2], it is
time to remove it from libguestfs.
[1] https://github.com/libguestfs/virt-p2v
[2] http://download.libguestfs.org/virt-p2v/
Pino Toscano (2):
Remove virt-p2v
Remove remaining virt-p2v bits
.gitignore | 4 -
Makefile.am | 7 +-
bash/Makefile.am