Archive for the tag 'addresses'

Spam whitelist limited to 100 addresses in Plesk Control Panel

By default Plesk only allows you to have 100 email addresses listed in your whitelist and blacklists.
It was done to limit CPU usage by spamassassin, because by adding several hundreds of mail addresses into one of the lists user can decrease server performance. Or user can advisedly, add a lot of addresses into list, send a lot of mails and all server will be very slow.

In Plesk CP user can see how many addresses he can add into list(100 minus already added quantity of addresses). If before upgrade to 8.1 (this limit doesn’t exists in earlier version) there were added more than 100 addresses user will see negative number.

SBDavid

Block IP Addresses With IPtables

Block IP Addresses With IPtables:

This command will simply drop any packet coming from the address 25.55.55.55. To list the chains:

iptables -I INPUT -s 25.55.55.55 -j DROP

The -n sticks with just IP addresses, rather than resolving the name. This is useful if you have a lot of IP addresses. It can take a lot of time to resolve all of the addresses.

iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
DROP all — 25.55.55.55 0.0.0.0/0

If you later decide that you don’t want to drop packets from a particular host, use the -D option instead of -I:

iptables -D INPUT -s 25.55.55.55 -j DROP

How to create a range of ip addresses on ethx

Create a range file in /etc/sysconfig/network-scripts

Example:

#vi ifcfg-eth0-range1

Insert the following

DEVICE=eth0
BOOTPROTO=static
HWADDR=00:04:75:D4:C8:F9
IPADDR_START=192.168.0.6
IPADDR_END=192.168.0.10
CLONENUM_START=1
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
CLONENUM_START — interface clone number to start using for this range. # eg “1″

Which would start at eth0:1

Mass IP addresses change in Plesk Control Panel

Solution: Using the special utility reconfigurator.pl in Plesk

#/usr/local/psa/bin/reconfigurator.pl
Plesk reconfigurator - utility to change IP addresses used by
Plesk Server Administrator

usage:
/usr/local/psa/bin/reconfigurator.pl

If doesn’t exists - template will be created, otherwise it will be used to map IP addresses.

There is the special utility reconfigurator.pl in Plesk that allows you to change IPs in Plesk base and reconfigure domain settings with new IPs.

This utility is available in the /usr/local/psa/bin directory.

The new IP addresses must NOT exist in Server > IP Addresses list in Plesk control panel before replacement, they may be added on system level only. If IP addresses do not exist in the system, the utility will add new IPs to the system as well.

To view the IP addresses you have at your disposal:

Go to Home > IP Addresses (in the Server group).

To add a new IP address to the server:

Go to Home > IP Addresses (in the Server group) and click Add IP Address.

To remove an IP address from the server:

Go to Home > IP Addresses (in the Server group).
Select the respective check box and click Remove, confirm removal and click OK.

To assign an IP address to a user:

Go to Home > IP Addresses (in the Server group) and click the respective number in the Clients column, then click Assign.
Select the user account you need and click OK.

Select the network interface for the new IP from the Interface drop-down box. All network cards installed on your server are shown in this drop-down box.

To change an IP address allocation type (shared, exclusive) or assign another SSL certificate to an IP address:

Go to Home > IP Addresses (in the Server group) and click the IP address you need.
Select the IP address allocation type and SSL certificate you need, and click OK.

When you obtain a new IP address that you would like to use on the server, you should add the address through the control panel, as Parallels Plesk Panel might not recognize manual modifications you make to the network configuration files.

With Parallels Plesk Panel you can mark all your IP addresses as shared or dedicated before you assign them to your customers. This allows the control panel to distinguish between them and not to let you assign a dedicated IP address to several customers at once. A dedicated IP address can be assigned to a single customer, while a shared IP address can be shared among several user accounts.

« Prev - Next »