Displaying 20 results from an estimated 241 matches for "remote_port".
2014 Aug 11
2
[PATCH] p2v: check results of strndup and sscanf
---
p2v/ssh.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/p2v/ssh.c b/p2v/ssh.c
index 1e9b05c..ff906df 100644
--- a/p2v/ssh.c
+++ b/p2v/ssh.c
@@ -505,7 +505,16 @@ open_data_connection (struct config *config, int *local_port, int *remote_port)
}, ovector, ovecsize)) {
case 100: /* Ephemeral port. */
port_str = strndup (&h->buffer[ovector[2]], ovector[3]-ovector[2]);
- sscanf (port_str, "%d", remote_port);
+ if (port_str == NULL) {
+ set_ssh_error ("not...
2002 Oct 30
2
Rhosts Authentication broken in 3.4.p1???
...e from priviledged
* programs. Of course, if the intruder has root access on his
* local machine, he can connect from any port. So do not use these
* authentication methods from machines that you do not trust.
*/
if (options.rhosts_authentication &&
(remote_port >= IPPORT_RESERVED ||
remote_port < IPPORT_RESERVED / 2)) {
debug("Rhosts Authentication disabled, "
"originating port %d not trusted.", remote_port);
options.rhosts_authentication = 0;
}
It looks to me like this...
2007 Feb 09
0
[PATCH] xenconsoled: ignore spurious watch event
...ine 177
Signed-off-by: Max Zhen <max.zhen@sun.com>
diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c
--- a/tools/console/daemon/io.c
+++ b/tools/console/daemon/io.c
@@ -63,6 +63,7 @@ struct domain
char *conspath;
int ring_ref;
evtchn_port_t local_port;
+ evtchn_port_t remote_port;
int xce_handle;
struct xencons_interface *interface;
};
@@ -234,6 +235,9 @@ static int domain_create_ring(struct dom
if (err)
goto out;
+ if ((ring_ref == dom->ring_ref) && (remote_port == dom->remote_port))
+ goto out;
+
if (ring_ref != dom->ring_ref) {
if (dom-...
2007 Feb 20
0
[PATCH] Xenconsoled should ignore spurious watch event. Otherwise, it can rebind to the same evtchn of a dying domU during suspending and cause below error message:
....c:177:d0 EVTCHNOP failure: domain 0, error -22, line 177
diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c
--- a/tools/console/daemon/io.c
+++ b/tools/console/daemon/io.c
@@ -66,6 +66,7 @@ struct domain
char *conspath;
int ring_ref;
evtchn_port_t local_port;
+ evtchn_port_t remote_port;
int xce_handle;
struct xencons_interface *interface;
};
@@ -290,6 +291,9 @@ static int domain_create_ring(struct dom
if (err)
goto out;
+ if ((ring_ref == dom->ring_ref) && (remote_port == dom->remote_port))
+ goto out;
+
if (ring_ref != dom->ring_ref) {
if (dom-...
2003 Apr 29
0
[PATCH] Fix busy-looping behaviour in ipconfig
...cket.h | 2 -
4 files changed, 113 insertions(+), 26 deletions(-)
diff -Nru a/ipconfig/ipconfig.h b/ipconfig/ipconfig.h
--- /dev/null Wed Dec 31 16:00:00 1969
+++ b/ipconfig/ipconfig.h Tue Apr 29 11:01:50 2003
@@ -0,0 +1,15 @@
+/*
+ * ipconfig/ipconfig.h
+ */
+
+#define LOCAL_PORT 68
+#define REMOTE_PORT (LOCAL_PORT - 1)
+
+extern __u16 local_port;
+extern __u16 remote_port;
+
+#if 0
+#define DEBUG(x) printf x
+#else
+#define DEBUG(x) do { } while(0)
+#endif
diff -Nru a/ipconfig/main.c b/ipconfig/main.c
--- a/ipconfig/main.c Tue Apr 29 11:01:50 2003
+++ b/ipconfig/main.c Tue Apr 29 11:01:50 2003
@@...
2019 Nov 24
0
Lmtp proxy help assertion failed: (conn->remote_port != 0
I have this in my 20-lmtp.conf file and created passdb-file, this should
be enough to route a message to svr1? The port 24 is reachable from the
proxy.
bash-5.0# cat 20-lmtp.conf
lmtp_proxy = yes
protocol lmtp {
# Space separated list of plugins to load (default is global
mail_plugins).
passdb {
driver = passwd-file
args = /etc/dovecot/special-passdb
default_fields = proxy=y
2012 May 30
1
need assist with upstart config problem
...e different than remote host for port forwarding
# must resolve to an address that sshd login server listens on
env LOGIN_HOST=inet07.hamilton.harte-lyne.ca
# the remote host destination for port forwarding
env REMOTE_HOST=inet07.hamilton.harte-lyne.ca
# port that remote service listens on
env REMOTE_PORT=143
# Locate ssh binary
env SSH_BINARY=/usr/bin/ssh
# SSH options used:
### -D : "dynamic" app-level port forwarding - not used. ###
# -f : run in background without a terminal implies -n
# -i : identity file for pki login credentials
# -l : login user name
#...
2010 Oct 10
9
Dovecot 2.0.5 and BSDI 4.3 again
Right,
Changes made to dovecot-2.0.5/src/lib-master/master-service.c
conn.listen_fd = l->fd;
conn.fd = net_accept(l->fd, &conn.remote_ip, &conn.remote_port);
i_error("conn.fd: %d",conn.fd);
i_error("l->fd: %d",l->fd);
i_error("&conn.remote_ip: %d",&conn.remote_ip);
i_error("&conn.remote_port: %d",&am...
2007 Nov 14
1
libwrap-ing IMAP and POP logins
....h>
+#ifdef LIBWRAP
+#include <tcpd.h>
+int allow_severity =0, deny_severity = 0;
+#endif
+
bool disable_plaintext_auth, process_per_connection, greeting_capability;
bool verbose_proctitle, verbose_ssl, verbose_auth;
const char *greeting, *log_format;
@@ -69,6 +76,10 @@
unsigned int remote_port, local_port;
struct client *client;
int fd;
+#ifdef LIBWRAP
+ struct request_info req;
+ char daemon[13] = "dovecot-";
+#endif
fd = net_accept(LOGIN_LISTEN_FD, &remote_ip, &remote_port);
if (fd < 0) {
@@ -77,6 +88,17 @@
return;
}
+#ifdef LIBWRAP
+ strlcat(daemo...
2003 Apr 29
0
[PATCH] ipconfig: fix memory leak, and exit if no interfaces to configure
..._for_devs(void)
+{
+ struct state *s;
+
+ for (s = slist; s; s = s->next) {
+ if (s->dev->caps)
+ return;
+ }
+
+ fprintf(stderr, "%s: no devices to configure\n", progname);
+ exit(1);
}
int main(int argc, char *argv[])
@@ -430,8 +446,6 @@
}
local_port = port;
remote_port = local_port - 1;
- printf("IP-Config: binding source port to %d, "
- "dest to %d\n", local_port, remote_port);
break;
case 't':
loop_timeout = atoi(optarg);
@@ -448,7 +462,6 @@
case 'd':
add_device(optarg);
break;
-
case '...
2006 May 02
1
Macros?
...e is to read back system stuff that might be global or session settings.
Example
Tell the user where they are coming from, time etc
You are %%USERNAME%%
Logged in at %%LOGINTIME%%
Your browser is %%HTTP{"User-Agent"}%%
You are accessing from %%REMOTE_ADDR%%:%%REMOTE_PORT%%
The time is now %%TIME(timezone=%%USER{%%TZ%%}%%, fmt="HH:MM:SS")%%
The HTTP is the hash of all headers
The USER is the hash of all user parameters ... name timezone etc ...
You get the idea ...
Example:
I have support for 'twisies' in javascript but want to activate...
2002 Jun 25
7
[Bug 294] tcp wrapper access changed between 2.9.9p2 and 3.3p1
http://bugzilla.mindrot.org/show_bug.cgi?id=294
------- Additional Comments From ktaylor at daac.gsfc.nasa.gov 2002-06-26 00:53 -------
This is what's reported in the syslog from openssh-2.9.9p2 - with an ip address
range listed in hosts.allow
Jun 25 10:50:08 6D:server sshd[30123536]: Failed keyboard-interactive for
ktaylor from xxx.xxx.xxx.xxx port 40333 ssh2
Jun 25 10:50:13 6D:server
2000 Aug 24
0
patch for a few things
...*************
*** 90,95 ****
--- 90,101 ----
char **saved_argv;
int saved_argc;
+ /* Save these for use from log_connect_close(), called on fatal_cleanup,
+ * to make sure connection-close is fully logged. */
+ char saved_remote_hostname[200];
+ char saved_remote_ipaddress[200];
+ int saved_remote_port = 0;
+
/*
* The sockets that the server is listening; this is used in the SIGHUP
* signal handler.
***************
*** 228,233 ****
--- 234,248 ----
fatal("Timeout before authentication for %s.", get_remote_ipaddr());
}
+ void
+ log_connect_close(void *junk)
+ {
+ verbos...
2016 Sep 14
2
How to obtain a "non-stripped" executable for producing a usable core-dump
...= {0, 0, 0, 0}}}, ip4 = {s_addr = 0}}},
remote_ip = {family = 0, u = {
ip6 = {__in6_u = {__u6_addr8 = '\000' <repeats 15 times>,
__u6_addr16 = {0, 0, 0, 0,
0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, ip4 =
{s_addr = 0}}},
local_port = 65320, remote_port = 59489, userdb_fields = 0x0,
flags_override_add = MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT,
flags_override_remove = (unknown: 0), no_userdb_lookup = 0}
storage = 0x1
user_source = 0x56242ac6d3af ""
destaddr_source = 0x56242ac6d3af ""...
2016 Dec 07
0
[PATCH v2 1/4] vsock: track pkt owner vsock
.../virtio_vsock.h
@@ -48,6 +48,7 @@ struct virtio_vsock_pkt {
struct virtio_vsock_hdr hdr;
struct work_struct work;
struct list_head list;
+ struct vsock_sock *vsk;
void *buf;
u32 len;
u32 off;
@@ -56,6 +57,7 @@ struct virtio_vsock_pkt {
struct virtio_vsock_pkt_info {
u32 remote_cid, remote_port;
+ struct vsock_sock *vsk;
struct msghdr *msg;
u32 pkt_len;
u16 type;
diff --git a/net/vmw_vsock/virtio_transport_common.c b/net/vmw_vsock/virtio_transport_common.c
index a53b3a1..cc1eeb5 100644
--- a/net/vmw_vsock/virtio_transport_common.c
+++ b/net/vmw_vsock/virtio_transport_common.c
@@ -57...
2016 Dec 08
0
[PATCH v3 1/4] vsock: track pkt owner vsock
...7 @@ struct virtio_vsock_pkt {
struct virtio_vsock_hdr hdr;
struct work_struct work;
struct list_head list;
+ void *cancel_token; /* only used for cancellation */
void *buf;
u32 len;
u32 off;
@@ -56,6 +57,7 @@ struct virtio_vsock_pkt {
struct virtio_vsock_pkt_info {
u32 remote_cid, remote_port;
+ struct vsock_sock *vsk;
struct msghdr *msg;
u32 pkt_len;
u16 type;
diff --git a/net/vmw_vsock/virtio_transport_common.c b/net/vmw_vsock/virtio_transport_common.c
index a53b3a1..ef94eb8 100644
--- a/net/vmw_vsock/virtio_transport_common.c
+++ b/net/vmw_vsock/virtio_transport_common.c
@@ -57...
2016 Dec 12
0
[PATCH v4 1/4] vsock: track pkt owner vsock
...7 @@ struct virtio_vsock_pkt {
struct virtio_vsock_hdr hdr;
struct work_struct work;
struct list_head list;
+ void *cancel_token; /* only used for cancellation */
void *buf;
u32 len;
u32 off;
@@ -56,6 +57,7 @@ struct virtio_vsock_pkt {
struct virtio_vsock_pkt_info {
u32 remote_cid, remote_port;
+ struct vsock_sock *vsk;
struct msghdr *msg;
u32 pkt_len;
u16 type;
diff --git a/net/vmw_vsock/virtio_transport_common.c b/net/vmw_vsock/virtio_transport_common.c
index a53b3a1..ef94eb8 100644
--- a/net/vmw_vsock/virtio_transport_common.c
+++ b/net/vmw_vsock/virtio_transport_common.c
@@ -57...
2017 Mar 01
0
[PATCH-v4-RESEND 1/4] vsock: track pkt owner vsock
...7 @@ struct virtio_vsock_pkt {
struct virtio_vsock_hdr hdr;
struct work_struct work;
struct list_head list;
+ void *cancel_token; /* only used for cancellation */
void *buf;
u32 len;
u32 off;
@@ -56,6 +57,7 @@ struct virtio_vsock_pkt {
struct virtio_vsock_pkt_info {
u32 remote_cid, remote_port;
+ struct vsock_sock *vsk;
struct msghdr *msg;
u32 pkt_len;
u16 type;
diff --git a/net/vmw_vsock/virtio_transport_common.c b/net/vmw_vsock/virtio_transport_common.c
index 849c4ad..ab505f1 100644
--- a/net/vmw_vsock/virtio_transport_common.c
+++ b/net/vmw_vsock/virtio_transport_common.c
@@ -57...
2019 Nov 24
2
lmtp proxy 'Invalid FROM: Missing domain'
Looks like I have a correct working proxy on pop3. On both backend
servers I can run
cat /tmp/test.msg | /usr/libexec/dovecot/lmtp
Giving
250 2.1.5 OK
354 OK
Info: Disconnect from local: Connection closed (in DATA)
However if I run the same command on the proxy, I am getting this error
'Invalid FROM: Missing domain'. How is this FROM even relevant if
message just needs to be
2020 Jan 21
2
Using dsync for a single mailbox?
Is it possble to use `doveadm sync` to migrate a single mailbox? I'm
migrating accounts from another IMAP server,and most of the mailboxes
are in mbox or maildir format, but a few are in MBX. As far as I can tell
the only recommended way to "convert" an MBX mailbox is to sync it via
imap. But dsync fails in inscrutable ways, and the documentation is kind
of scant on how to control