Displaying 2 results from an estimated 2 matches for "portb".
Did you mean:
port
2005 Feb 22
0
TR: 3.8.1p1 option "permitopennet" added
...;
}
+
+/* e.g: permitopenned="158.156.0.0/255.255.255.0:25[-1024]"
+ * note that part between [] is optionnal for 1 port specification
+ */
+ cp = "permitopennet=\"";
+ if (strncasecmp(opts, cp, strlen(cp)) == 0) {
+ char netblock[256], netmask[256],
+ sporta[6], sportb[6];
+ u_short porta, portb;
+
+ char *patterns = xmalloc(strlen(opts) + 1);
+ netblock[0] = netmask[0] = sporta[0] = sportb[0] = 0;
+ porta = portb = 0;
+
+ opts += strlen(cp);
+ i = 0;
+ while (*opts) {
+ if (*opts == '"')
+ break;
+ if (*opts == '\\' &...
2005 Feb 22
0
3.8.1p1 option "permitopennet" added
Hello,
I send you a small patch about a "new" option called "permitopennet".
The behaviour is the same as "permitopen" except the accept/deny
statement is based on this syntax : "netblock/netmask:porta[-portb]".
Moreover, I also added some useful log lines : the uid is logged while
doing port forwarding.
Sample conf :
permitopennet="158.156.156.128/255.255.255.128:25-1024" ssh-dss
AAAAB3NzaC1kc3MAAACAbAehy7ov+HQvaSalGdJaNA3YAunrEIT3sqNqqs8CVIAgv2p ...
Logs :
eym59365 (uid:620) reque...