Configure iptables ftp port 21 and 22 including passive ports
- No Comments
- Dec, 18, 2010
- Angelo Schalley
- FTP, Linux, Networking, security
How do I open port 21 using Linux iptables firewall?
Use iptables administration tool for IPv4 packet filtering and NAT under Linux to open tcp port 21 (FTP). Following rule-set assumes that your eth0 network interface is directly connected to the Internet. It has public ip (202.54.1.20). FTP use both port 21 and 20 (port 21 for the command port and port 20 for the data). So following iptables rules take care of both ports (add rules to your iptables based shell script):
Read more on Configure iptables ftp port 21 and 22 including passive ports…
Postfix masquerading or changing outgoing SMTP email or mail address
- No Comments
- Dec, 16, 2010
- Angelo Schalley
- Linux, Postfix
Address rewriting allows changing outgoing email ID or domain name itself. This is good for hiding internal user names. For example:
SMTP user: angelo-01
EMAIL ID: angelo@domain.com
Server name: server01.hosting.com
However when angelo-01 send an email from shell prompt or using php it looks like it was send from angelo-01@server01.hosting.com
Read more on Postfix masquerading or changing outgoing SMTP email or mail address…
Plesk DNS issues, rebuilding DNS named on plesk
- No Comments
- Dec, 16, 2010
- Angelo Schalley
- DNS, Linux, Plesk Linux
Named under plesk can sometimes go haywire. I have seen until now two cases when this happens:
First Scenario
Named will not start due to a faulty zone file. Log into your server by ssh as user root
Read more on Plesk DNS issues, rebuilding DNS named on plesk…