Vyatta Perfect DDos Protection [Update 29 Sep]

20 posts / 0 new
Last post
first-priority
Vyatta Perfect DDos Protection [Update 29 Sep]

How to install [Last update 29 Sep] インストール手順 [最終更新 9月29日]

Section1 psad

vyatta@vyatta:~$ configure
[edit]

vyatta@vyatta# set system package repository lenny components main
vyatta@vyatta# set system package repository lenny url http://http.us.debian.org/debian
vyatta@vyatta# set system package repository lenny distribution lenny
vyatta@vyatta# commit
vyatta@vyatta# save
vyatta@vyatta# su -

vyatta:~# aptitude update

vyatta:~# aptitude install build-essential gcc autoconf make patch whois

vyatta:~# aptitude install libcurses-perl libdate-calc-perl libiptables-chainmgr-perl
vyatta:~# aptitude install libnet-ip-perl libbit-vector-perl libnet-ip-perl libunix-syslog-perl
vyatta:~# aptitude install ssmtp bastille libiptables-parse-perl

vyatta:~# ln -s /usr/sbin/ssmtp /usr/sbin/sendmail

vyatta:~# ln -s /usr/sbin/ssmtp /bin/mail

vyatta:~# vi /etc/ssmtp/ssmtp.conf 
# 
# Config file for sSMTP sendmail 
# 
# The person who gets all mail for userids < 1000 
# Make this empty to disable rewriting. 
root=your_email 

# The place where the mail goes. The actual machine name is required no 
# MX records are consulted. Commonly mailhosts are named mail.domain.com 
mailhub=your_smtp_server 
AuthUser=your_email 
AuthPass=your_password 

# Where will the mail seem to come from? 
#rewriteDomain= 

# The full hostname 
#hostname= 

# Are users allowed to set their own From: address? 
# YES - Allow the user to specify their own From: address 
# NO - Use the system generated From: address 
#FromLineOverride=YES 

/etc/ssmtp/ssmtp.conf sample

root=example@gmail.com 
mailhub=smtp.gmail.com:587 
rewriteDomain=gmail.com 
hostname=gmail.com 
AuthUser=example@gmail.com 
AuthPass=***********
UseSTARTTLS=YES
AuthMethod=LOGIN
FromLineOverride=YES

/etc/ssmtp/revaliases

root:youraccount@gmail.com:smtp.gmail.com:587
vyatta:youraccount@gmail.com:smtp.gmail.com:587
ntop:youraccount@gmail.com:smtp.gmail.com:587
fail2ban:youraccount@gmail.com:smtp.gmail.com:587

test mail ssmtp

vyatta:~# iptables -L -n|mail -s iptables root@localhost
send-mail: RCPT TO: (550 Invalid recipient: )
Can't send mail: sendmail process failed with error code 1

vyatta:~# iptables -L -n|mail -s iptables 
vyatta:~# iptables -L -n|mail -s iptables root 
vyatta:~# iptables -L -n|mail -s iptables vyatta

vyatta:~# wget http://www.cipherdyne.com/psad/download/psad-2.1.7.tar.gz
vyatta:~# tar xzvf psad-2.1.7.tar.gz
vyatta:~# cd psad-2.1.7
vyatta:~/psad-2.1.7# ./install.pl

If mistaken
would you like to again install script

vyatta:~/psad-2.1.7# ./install.pl

vyatta@vyatta:~$ su -
vyatta:~# hostname
vyatta.example.com
vyatta:~# 

Make sure set config /etc/psad/psad.conf your Email Hostname
[=red]/etc/psad/psad.conf ãÂ

htnet
Vyatta Perfect DDos Protection [Update 29 Sep]

Hello,

Please help me, error:

vyatta:~/psad-2.1.7# ./install.pl
[+] Sat Sep 18 07:19:35 2010 Installing psad on hostname: vyatta
[+] Compiling Marco d'Itri's whois client
make: Entering directory `/root/psad-2.1.7/deps/whois'
cc  -O2 -c whois.c
whois.c:12:19: error: stdio.h: No such file or directory
whois.c:13:20: error: stdlib.h: No such file or directory
whois.c:15:20: error: unistd.h: No such file or directory
whois.c:17:20: error: string.h: No such file or directory
whois.c:18:19: error: ctype.h: No such file or directory
whois.c:19:23: error: sys/types.h: No such file or directory
whois.c:20:24: error: sys/socket.h: No such file or directory
whois.c:21:24: error: netinet/in.h: No such file or directory
whois.c:22:19: error: netdb.h: No such file or directory
whois.c:23:19: error: errno.h: No such file or directory
whois.c:24:20: error: signal.h: No such file or directory
In file included from whois.c:36:
data.h:26: error: 'NULL' undeclared here (not in a function)
data.h:67: error: initializer element is not constant
data.h:67: error: (near initialization for 'hide_strings[73]')
data.h:68: error: initializer element is not constant
data.h:68: error: (near initialization for 'hide_strings[74]')
data.h:88: error: initializer element is not constant
data.h:88: error: (near initialization for 'nic_handles[20]')
data.h:89: error: initializer element is not constant
data.h:89: error: (near initialization for 'nic_handles[21]')
In file included from whois.c:36:
data.h:99: error: initializer element is not constant
data.h:99: error: (near initialization for 'ip_assign[200].serv')
In file included from whois.c:36:
data.h:110: error: initializer element is not constant
data.h:110: error: (near initialization for 'ip6_assign[32].serv')
In file included from whois.c:36:
data.h:121: error: initializer element is not constant
data.h:121: error: (near initialization for 'as_assign[62].serv')
In file included from whois.c:36:
data.h:132: error: initializer element is not constant
data.h:132: error: (near initialization for 'as32_assign[5].serv')
In file included from whois.c:36:
data.h:137: error: initializer element is not constant
data.h:137: error: (near initialization for 'tld_serv[704]')
data.h:138: error: initializer element is not constant
data.h:138: error: (near initialization for 'tld_serv[705]')
In file included from whois.c:38:
utils.h:30:22: error: libintl.h: No such file or directory
utils.h:31:21: error: locale.h: No such file or directory
whois.c: In function 'main':
whois.c:73: warning: initialization from incompatible pointer type
whois.c:73: warning: initialization from incompatible pointer type
whois.c:77: error: 'LC_ALL' undeclared (first use in this function)
whois.c:77: error: (Each undeclared identifier is reported only once
whois.c:77: error: for each function it appears in.)
whois.c:83: warning: passing argument 1 of 'merge_args' makes pointer from integer without a cast
whois.c:88: warning: incompatible implicit declaration of built-in function 'strchr'
whois.c:90: warning: incompatible implicit declaration of built-in function 'sprintf'
whois.c:95: warning: incompatible implicit declaration of built-in function 'snprintf'
whois.c:103: warning: incompatible implicit declaration of built-in function 'strdup'
whois.c:118: warning: incompatible implicit declaration of built-in function 'fprintf'
whois.c:118: error: 'stderr' undeclared (first use in this function)
whois.c:118: warning: incompatible implicit declaration of built-in function 'gettext'
whois.c:123: warning: incompatible implicit declaration of built-in function 'exit'
whois.c:135: warning: incompatible implicit declaration of built-in function 'malloc'
whois.c:143: warning: incompatible implicit declaration of built-in function 'strlen'
whois.c:144: warning: incompatible implicit declaration of built-in function 'realloc'
whois.c:145: warning: incompatible implicit declaration of built-in function 'strcat'
whois.c:153: error: 'SIGTERM' undeclared (first use in this function)
whois.c:154: error: 'SIGINT' undeclared (first use in this function)
whois.c:155: error: 'SIGALRM' undeclared (first use in this function)
whois.c:162: warning: incompatible implicit declaration of built-in function 'strdup'
whois.c:176: warning: incompatible implicit declaration of built-in function 'free'
whois.c:183: warning: incompatible implicit declaration of built-in function 'exit'
whois.c: In function 'handle_query':
whois.c:193: warning: initialization from incompatible pointer type
whois.c:193: warning: initialization from incompatible pointer type
whois.c:197: warning: incompatible implicit declaration of built-in function 'strdup'
whois.c:200: warning: incompatible implicit declaration of built-in function 'strdup'
whois.c:206: warning: assignment makes pointer from integer without a cast
whois.c:210: warning: incompatible implicit declaration of built-in function 'gettext'
whois.c:213: warning: return from incompatible pointer type
whois.c:216: warning: return from incompatible pointer type
whois.c:219: warning: return from incompatible pointer type
whois.c:222: warning: return from incompatible pointer type
whois.c:225: warning: return from incompatible pointer type
whois.c:228: warning: incompatible implicit declaration of built-in function 'printf'
whois.c:229: warning: passing argument 2 of 'openconn' from incompatible pointer type
whois.c:236: warning: passing argument 2 of 'openconn' from incompatible pointer type
whois.c:242: warning: passing argument 2 of 'openconn' from incompatible pointer type
whois.c:248: warning: passing argument 2 of 'openconn' from incompatible pointer type
whois.c:270: warning: return from incompatible pointer type
whois.c:274: warning: incompatible implicit declaration of built-in function 'printf'
whois.c:274: warning: incompatible implicit declaration of built-in function 'gettext'
whois.c:280: warning: incompatible implicit declaration of built-in function 'strcat'
whois.c:285: warning: incompatible implicit declaration of built-in function 'printf'
whois.c:285: warning: incompatible implicit declaration of built-in function 'gettext'
whois.c:286: warning: passing argument 2 of 'handle_query' from incompatible pointer type
whois.c:289: warning: return from incompatible pointer type
whois.c: In function 'whichwhois':
whois.c:371: warning: incompatible implicit declaration of built-in function 'strchr'
whois.c:403: warning: incompatible implicit declaration of built-in function 'strpbrk'
whois.c:434: warning: incompatible implicit declaration of built-in function 'strlen'
whois.c: In function 'queryformat':
whois.c:471: warning: incompatible implicit declaration of built-in function 'malloc'
whois.c:471: warning: incompatible implicit declaration of built-in function 'strlen'
whois.c:475: warning: incompatible implicit declaration of built-in function 'strcat'
whois.c:483: warning: incompatible implicit declaration of built-in function 'gettext'
whois.c:484: warning: incompatible implicit declaration of built-in function 'strcat'
whois.c:507: warning: incompatible implicit declaration of built-in function 'sprintf'
whois.c:510: warning: initialization makes pointer from integer without a cast
whois.c:514: warning: incompatible implicit declaration of built-in function 'strcat'
whois.c:516: warning: incompatible implicit declaration of built-in function 'strrchr'
whois.c:517: warning: incompatible implicit declaration of built-in function 'strncat'
whois.c:519: warning: incompatible implicit declaration of built-in function 'strcat'
whois.c: In function 'hide_line':
whois.c:535: warning: comparison of distinct pointer types lacks a cast
whois.c:536: warning: incompatible implicit declaration of built-in function 'strlen'
whois.c:549: warning: incompatible implicit declaration of built-in function 'strlen'
whois.c: In function 'do_query':
whois.c:564: error: 'FILE' undeclared (first use in this function)
whois.c:564: error: 'fi' undeclared (first use in this function)
whois.c:564: error: invalid operands to binary * (have 'const char **' and 'const char **')
whois.c:566: warning: initialization from incompatible pointer type
whois.c:569: warning: incompatible implicit declaration of built-in function 'strlen'
whois.c:583: warning: incompatible implicit declaration of built-in function 'sscanf'
whois.c:585: warning: incompatible implicit declaration of built-in function 'malloc'
whois.c:586: warning: incompatible implicit declaration of built-in function 'sprintf'
whois.c:597: warning: incompatible implicit declaration of built-in function 'strstr'
whois.c:599: warning: incompatible implicit declaration of built-in function 'strdup'
whois.c:603: warning: incompatible implicit declaration of built-in function 'strchr'
whois.c:614: warning: incompatible implicit declaration of built-in function 'fprintf'
whois.c:614: error: 'stdout' undeclared (first use in this function)
whois.c:621: warning: incompatible implicit declaration of built-in function 'gettext'
whois.c: In function 'query_crsnic':
whois.c:629: warning: initialization from incompatible pointer type
whois.c:630: error: 'FILE' undeclared (first use in this function)
whois.c:630: error: 'fi' undeclared (first use in this function)
whois.c:630: error: invalid operands to binary * (have 'const char **' and 'const char **')
whois.c:634: warning: incompatible implicit declaration of built-in function 'malloc'
whois.c:634: warning: incompatible implicit declaration of built-in function 'strlen'
whois.c:636: warning: incompatible implicit declaration of built-in function 'strcpy'
whois.c:637: warning: incompatible implicit declaration of built-in function 'strcat'
whois.c:661: error: 'stdout' undeclared (first use in this function)
whois.c:666: warning: incompatible implicit declaration of built-in function 'free'
whois.c: In function 'query_pir':
whois.c:672: warning: initialization from incompatible pointer type
whois.c:673: error: 'FILE' undeclared (first use in this function)
whois.c:673: error: 'fi' undeclared (first use in this function)
whois.c:673: error: invalid operands to binary * (have 'const char **' and 'const char **')
whois.c:677: warning: incompatible implicit declaration of built-in function 'malloc'
whois.c:677: warning: incompatible implicit declaration of built-in function 'strlen'
whois.c:678: warning: incompatible implicit declaration of built-in function 'strcpy'
whois.c:679: warning: incompatible implicit declaration of built-in function 'strcat'
whois.c:704: error: 'stdout' undeclared (first use in this function)
whois.c:709: warning: incompatible implicit declaration of built-in function 'free'
whois.c: In function 'query_afilias':
whois.c:715: warning: initialization from incompatible pointer type
whois.c:716: error: 'FILE' undeclared (first use in this function)
whois.c:716: error: 'fi' undeclared (first use in this function)
whois.c:716: error: invalid operands to binary * (have 'const char **' and 'const char **')
whois.c:720: warning: incompatible implicit declaration of built-in function 'malloc'
whois.c:720: warning: incompatible implicit declaration of built-in function 'strlen'
whois.c:721: warning: incompatible implicit declaration of built-in function 'strcpy'
whois.c:722: warning: incompatible implicit declaration of built-in function 'strcat'
whois.c:748: warning: incompatible implicit declaration of built-in function 'fprintf'
whois.c:748: error: 'stdout' undeclared (first use in this function)
whois.c:756: warning: incompatible implicit declaration of built-in function 'gettext'
whois.c: In function 'openconn':
whois.c:771: error: storage size of 'saddr' isn't known
whois.c:796: warning: assignment makes pointer from integer without a cast
whois.c:796: warning: comparison of distinct pointer types lacks a cast
whois.c:797: warning: incompatible implicit declaration of built-in function 'gettext'
whois.c:798: error: 'PF_INET' undeclared (first use in this function)
whois.c:798: error: 'SOCK_STREAM' undeclared (first use in this function)
whois.c:798: error: 'IPPROTO_IP' undeclared (first use in this function)
whois.c:800: warning: incompatible implicit declaration of built-in function 'memset'
whois.c:800: warning: passing argument 3 of 'memset' makes integer from pointer without a cast
whois.c:801: error: request for member 'sin_addr' in something not a structure or union
whois.c:801: error: dereferencing pointer to incomplete type
whois.c:801: error: request for member 'h_addr' in something not a structure or union
whois.c:801: error: dereferencing pointer to incomplete type
whois.c:802: error: request for member 'sin_family' in something not a structure or union
whois.c:802: error: 'AF_INET' undeclared (first use in this function)
whois.c:804: error: request for member 'sin_port' in something not a structure or union
whois.c:805: error: request for member 'sin_port' in something not a structure or union
whois.c:806: warning: assignment makes pointer from integer without a cast
whois.c:806: warning: comparison of distinct pointer types lacks a cast
whois.c:808: error: request for member 'sin_port' in something not a structure or union
whois.c:808: error: dereferencing pointer to incomplete type
whois.c:808: error: request for member 's_port' in something not a structure or union
whois.c: In function 'alarm_handler':
whois.c:826: warning: incompatible implicit declaration of built-in function 'gettext'
whois.c: In function 'sighandler':
whois.c:832: warning: incompatible implicit declaration of built-in function 'gettext'
whois.c: In function 'normalize_domain':
whois.c:853: warning: initialization from incompatible pointer type
whois.c:855: warning: incompatible implicit declaration of built-in function 'strdup'
whois.c: In function 'split_server_port':
whois.c:903: warning: incompatible implicit declaration of built-in function 'strchr'
whois.c:907: warning: incompatible implicit declaration of built-in function 'malloc'
whois.c:908: warning: incompatible implicit declaration of built-in function 'memcpy'
whois.c:913: warning: incompatible implicit declaration of built-in function 'strdup'
whois.c:916: warning: incompatible implicit declaration of built-in function 'strdup'
whois.c:921: warning: incompatible implicit declaration of built-in function 'malloc'
whois.c:922: warning: incompatible implicit declaration of built-in function 'memcpy'
whois.c:927: warning: incompatible implicit declaration of built-in function 'strdup'
whois.c:929: warning: incompatible implicit declaration of built-in function 'strdup'
whois.c: In function 'convert_6to4':
whois.c:939: warning: incompatible implicit declaration of built-in function 'malloc'
whois.c:942: warning: incompatible implicit declaration of built-in function 'sscanf'
whois.c:945: warning: incompatible implicit declaration of built-in function 'sprintf'
whois.c: In function 'convert_teredo':
whois.c:951: warning: incompatible implicit declaration of built-in function 'malloc'
whois.c:954: warning: incompatible implicit declaration of built-in function 'sscanf'
whois.c:959: warning: incompatible implicit declaration of built-in function 'sprintf'
whois.c: In function 'myinet_aton':
whois.c:971: warning: incompatible implicit declaration of built-in function 'sscanf'
whois.c: In function 'asn32_to_long':
whois.c:986: warning: incompatible implicit declaration of built-in function 'sscanf'
whois.c: In function 'usage':
whois.c:1001: warning: incompatible implicit declaration of built-in function 'fprintf'
whois.c:1001: error: 'stderr' undeclared (first use in this function)
whois.c:1001: warning: incompatible implicit declaration of built-in function 'gettext'
whois.c:1030: warning: incompatible implicit declaration of built-in function 'exit'
make: *** [whois.o] Error 1
make: Leaving directory `/root/psad-2.1.7/deps/whois'
[*] Could not compile whois at ./install.pl line 353.
vyatta:~/psad-2.1.7#
first-priority
Vyatta Perfect DDos Protection [Update 29 Sep]

vyatta:~# aptitude update

vyatta:~# aptitude install build-essential
htnet
Vyatta Perfect DDos Protection [Update 29 Sep]

sloved. Thanks.

htnet
Vyatta Perfect DDos Protection [Update 29 Sep]

Hi all,

This script will apply for all port/IP???

Can i apply to some port of my server? because some server we don't use firewall

Thanks.

htnet
Vyatta Perfect DDos Protection [Update 29 Sep]

Hello,

This script can't help me block SYN Flood 80MB :(

My vyatta hardware:
IBM X3650 E5420
4GB RAM
RAID 0 - 2 x146G SAS
100Mbps network

My server:
IBM X3650 2 x E5420
4GB RAM
RAID1 - 2x 146G SAS
connect with eth1 of vyaata

but my vyatta server can't block 80MB SYN Flood :(, my server died now :(

Please help me :(

zenjabba
Vyatta Perfect DDos Protection [Update 29 Sep]

Keep getting the following error, and not really sure were to start looking.

Delivery to the following recipient failed permanently:

[psad-status] firewall setup warning on vyatta.cocoondata.com!@gmail.com

Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550-5.1.1 The email account that you tried to reach does not exist. Please try
550-5.1.1 double-checking the recipient's email address for typos or
550-5.1.1 unnecessary spaces. Learn more at
550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 x1si2455675wfd.92 (state 17).

first-priority
Vyatta Perfect DDos Protection [Update 29 Sep]

Let me see your ssmtp.conf

zenjabba
Vyatta Perfect DDos Protection [Update 29 Sep]

#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
#root=fail2ban@cocoondata.com
#root=stephen.thompson.au@gmail.com
# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.gmail.com:587

# Where will the mail seem to come from?
rewriteDomain=gmail.com

# The full hostname
hostname=gmail.com

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES
AuthUser=Username@gmail.com
AuthMethod=LOGIN
AuthPass=password
UseSTARTTLS=YES

first-priority
Vyatta Perfect DDos Protection [Update 29 Sep]

should be check vyatta hostname then add user on /etc/ssmtp/revaliases

Quote:
/etc/ssmtp/revaliases

root:youraccount@gmail.com:smtp.gmail.com:587
mainuser:youraccount@gmail.com:smtp.gmail.com:587
ntop:youraccount@gmail.com:smtp.gmail.com:587
fail2ban:youraccount@gmail.com:smtp.gmail.com:587
rkhunter:youraccount@gmail.com:smtp.gmail.com:587

htnet
Vyatta Perfect DDos Protection [Update 29 Sep]

Hello,

Please help me error:

vyatta:~# psad -R
[-] psad: pid file /var/run/psad/psadwatchd.pid does not exist for psadwatchd on vyatta.hoatoc.vn
[-] psad: pid file /var/run/psad/psad.pid does not exist for psad on vyatta.hoatoc.vn
[+] Restarting psad daemons on vyatta.hoatoc.vn
mail: RCPT TO:<[psad-status] firewall setup warning on vyatta.hoatoc.vn!@hoatoc.vn> (501 5.1.3 Bad recipient address syntax)
first-priority
Vyatta Perfect DDos Protection [Update 29 Sep]

How was error? and then /etc/ssmtp/ssmtp.conf /etc/ssmtp/revaliases
I understand that some of your inqueries refers to a number of totally different issues in terms of stages of setup, modification or additional psad etc.

vyatta@vyatta:~$ su -
vyatta:~# hostname
vyatta.example.com
vyatta:~# 

htnet
Vyatta Perfect DDos Protection [Update 29 Sep]

vyatta:~# hostname
vyatta.hoatoc.vn
vyatta:~#

# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=vyatta@hoatoc.vn

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.hoatoc.vn

# Where will the mail seem to come from?
rewriteDomain=hoatoc.vn

# The full hostname
hostname=vyatta.hoatoc.vn
AuthUser=vyatta@hoatoc.vn
first-priority
Vyatta Perfect DDos Protection [Update 29 Sep]

Mailhub
The host to send mail to, in the form host | IP_addr [
: port]. The default port is 25.

RewriteDomain
The domain from which mail seems to come. for user authentication.

Hostname
The full qualified name of the host. If not specified, the host is queried for its hostname.

FromLineOverride

Specifies whether the From header of an email, if any, may override the default domain. The default is ''no''.

UseTLS
Specifies whether ssmtp uses TLS to talk to the SMTP server. The default is ''no''.

UseSTARTTLS
Specifies whether ssmtp does a EHLO/STARTTLS before starting SSL negotiation. See RFC 2487.

TLSCert
The file name of an RSA certificate to use for TLS, if required.

AuthUser
The user name to use for SMTP AUTH. The default is blank, in which case SMTP AUTH is not used. sent without

AuthPass
The password to use for SMTP AUTH.

AuthMethod
The authorization method to use. If unset, plain text is used. May also be set to ''cram-md5''.

Quote:
mailhub=your_smtp_server
AuthUser=your_email or account_ID
AuthPass=your_password

mailhub=smtp.example.com
AuthUser=d6778
AuthPass=*********

mailhub=smtp.example.org
AuthUser=web_088
AuthPass=*********

htnet
Vyatta Perfect DDos Protection [Update 29 Sep]

Thank you,

i already config

root=vyatta@hoatoc.vn

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.hoatoc.vn

# Where will the mail seem to come from?
rewriteDomain=hoatoc.vn

# The full hostname
hostname=vyatta@hoatoc.vn
AuthUser=vyatta@hoatoc.vn
AuthPass=*****
#UseSTARTTLS=YES
AuthMethod=LOGIN

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
FromLineOverride=YES

but still error:

vyatta:/var/log/psad/errs# psad -R
[+] Stopping psadwatchd, pid: 17934
[+] Stopping psad, pid: 17932
[+] Restarting psad daemons on vyatta.hoatoc.vn
mail: RCPT TO:<[psad-status] firewall setup warning on vyatta.hoatoc.vn!@hoatoc.vn> (501 5.1.3 Bad recipient address syntax)

2010-10-02 20:39:35 (6.21 MB/s) - `/etc/dshield/block.txt' saved [2442/2442]

mail: RCPT TO: (501 5.1.3 Bad recipient address syntax)
first-priority
Vyatta Perfect DDos Protection [Update 29 Sep]

AuthUser=your_email_account or account_ID

e.g.

Email

Account ID x3301
PASS *******
SMTP smtp1.example.com

Email

Account ID user_6771
PASS *******
SMTP mail.example.org

danieldemoraisgurgel
Vyatta Perfect DDos Protection [Update 29 Sep]

Perfect! Very nice! :lol:

andegrand
Vyatta Perfect DDos Protection [Update 29 Sep]

Hello,

I have very mistake warrning:

root@vyatta:/etc/init.d# /etc/init.d/psad restart
[+] Stopping psadwatchd, pid: 24736
[+] Stopping psad, pid: 24734
Starting psad: mail: RCPT TO:<[psad-status] firewall setup warning on vyatta!@host.pl> (501 <[psad-status] firewall setup warning on vyatta!@host.pl>: missing or malformed local part)

root@vyatta:/etc/init.d#

How Can i solve it ?

Regards

andegrand
Vyatta Perfect DDos Protection [Update 29 Sep]

Anyone ?

Labsy
Vyatta Perfect DDos Protection [Update 29 Sep]

Hmmm.... "local part" seems to be related with either "hostname" or, better guess, with local part of e-mail, either FROM email, or TO email.
It's a guess in the wild, but you should check /etc/ssmtp/ssmtp.conf

Log in or register to post comments