Postfix smart hot with gmail

0

Installation de Postfix

 

configurationType of mail server : Satellite System
    • Mail Name : example.org (the name you want on your outbound mail)
    • SMTP relay host : smtp.gmail.com
    • Postmaster : I left this blank
    • Other destinations : I left this blank
    • Synchronous Queues : your choice, won’t impact the relaying
    • Network blocks to allow relay : default (unless you know what your doing)
    • Mailbox size : your choice, won’t impact relaying
    • Local address : i left this as ‘+’
    • Listen Address : all, your choice
Editer le fichier de config

 

Création du fichier de sasl_passwd

Rebuild Hash

 

Restart postfix

 

On sécurise un peu

 

 

Plesk – Migrate DB

0

On source server backup the database. You may use the following command:

On destination server create database DATADASE_NAME on domain DOMAIN.NAME with Plesk CLI /usr/local/psa/bin/database. Assign the same user and password:

Database creation through Plesk CLI /usr/local/psa/bin/database will update Plesk database with appropriate user and password correctly. Run the utility wit “–help” to get list of all available options. After creation it is possible to login to the database through DB WebAdmin in Parallels Plesk Panel on destination server: Domains -> DOMAIN.NAME -> Databases -> DATADASE_NAME -> DB WebAdmin

On destination server restore content of the database from the dump created on source server:

 

 

Wireshark Filters

0

 

he filtering capabilities of Wireshark are very comprehensive. You can filter on just about any field of any protocol, even down to the HEX values in a data stream. Sometimes though, the hardest part about setting a filter in Wireshark is remembering the syntax! So below are the top 10 display filters that I use in Wireshark.

 

  1. ip.addr == 10.0.0.1 [Sets a filter for any packet with 10.0.0.1, as either the source or dest]
  2. ip.addr==10.0.0.1  && ip.addr==10.0.0.2 [sets a conversation filter between the two defined IP addresses]
  3. http or dns [sets a filter to display all http and dns]
  4. tcp.port==4000 [sets a filter for any TCP packet with 4000 as a source or dest port]
  5. tcp.flags.reset==1 [displays all TCP resets]
  6. http.request [displays all HTTP GET requests]
  7. tcp contains traffic [displays all TCP packets that contain the word ‘traffic’. Excellent when searching on a specific string or user ID]
  8. !(arp or icmp or dns) [masks out arp, icmp, dns, or whatever other protocols may be background noise. Allowing you to focus on the traffic of interest]
  9. udp contains 33:27:58 [sets a filter for the HEX values of 0x33 0x27 0x58 at any offset]
  10. tcp.analysis.retransmission [displays all retransmissions in the trace. Helps when tracking down slow application performance and packet loss]

Hot adding or removing a Cisco 3750 from a stack

1

When using a Cisco 3750 stack connected through stackwise technology you can add or remove a Cisco switch while the stack stays on. If you are adding or removing a switch from the stack, it is very important that the switch is turned OFF. The rest of the stack can keep doing its business.

For adding a switch to the stack follow these steps:

Step 1) On the new switch give the global command: switch stack-member-number provision type

Type is the type of switch you are adding to the stack.

When adding for example a third Cisco switch to the Cisco stack, use the following command:

switch 3 provision ws3750g-24t

Step 2) Power off the new stack member

Step 3) Connect the new member to the Cisco stack using the stacking cables, 1 loop at a time.

Step 4) Power on the new stack member. The switch will come alive and will receive the Cisco IOS version from the master, when that is completed it will be ready to service network requests.

For removing a member switch from the stack use the following steps:

Step 1) Power off the stack member to be removed.

Step 2) Remove the stackwise cable from the switch.

Step 3) Issue the following command on the stack master: no switch stack-member-number provisiontype

Cisco – Port mirroring

0

Voilà comment faire pour mirrorer un port:

 

Il est également possible de mirrorer un VLAN

 

Multiple Virtual FTP Accounts with Plesk

1

ProFTPD is the FTP software that current versions of Plesk ship with, and thankfully found what I was looking for.

ProFTPD allows you to create multiple virtual users by using an AuthUserFile directive. The AuthUserFile directive sets the path of a textual file containing a list of users and passwords for authentication.

 

Create a user file

Edit the ProFTPD configuration file. (NOT etc/proftpd.include as Plesk overwrites that file regularly.):

 

Add this line:

 

Creat a crypted password

 

Edit the user file like this:

 

Example

 

And finaly, reload proftpd

Disk Cloning With HDD Raw Copy Tool

0

HDD Raw Copy Tool est un outils très pratique pour cloner votre disque dur sur un nouveau disque.

Download HDD Raw Copy Tool

Nortel CLI command guide troubleshooting

0

Here are the CLI commands for troubleshooting the ERS 8600 switch:

 

Config timezone

Config NTP server

Show log file

 

 

 

Adresses multicast

0

Il est toujours utile de savoir à quoi correspondent les adresses multicast

 

  • 224.0.0.1 all hosts on a subnet
  • 224.0.0.2 all routers on a subnet
  • 224.0.0.4 Distance Vector Multicast Routing Protocols (DVMRP)
  • 224.0.0.5 OSPF routers
  • 224.0.0.6 OSPF designated routers
  • 224.0.0.9 RIP Version 2 routers
  • 224.0.0.10 EIGRP routers
  • 224.0.0.13 Protocol independent Multicast (PIM) routers

Cisco IOS Tips and Tricks

0

Il est toujours utile de connaitre les raccourcis clavier. Cela permet d’aller plus vite 🙂

 

Keyboard Shortcuts

Voici celles que j’utilise le plus

Ctrl+A Move cursor to the beginning of the line
Ctrl+E Move cursor to the end of the line
Up Retrieve last command from history
Down Retrieve next command from history
Ctrl+W Erase previous word
Ctrl+U Erase the entire line
Ctrl+C Exit configuration mode
Ctrl+Z Apply the current command and exit configuration mode

Modifying output

On peut modifier la sortie d’un show à l’aide des commandes “begin, include, exclude et section”.

 

Il est aussi possible d’utiliser des expressions régulières dans les show

Page 2 of 512345
Go to Top