nerdexam
Red_Hat

RH302 · Question #141

Configure the send mail server for your local LAN. As well as the mail of user john should get by the jane user.

Answers: 1. iptables -t filter -A INPUT -s 192.168.0.0/24 -p tcp --dport 22 -j DROP iptables is the build-in firewall tools, used to filter the packets and for nat. By identifying Source Address, Destination Address, type of protocol, source and destination port we can filter…

Service management

Question

Configure the send mail server for your local LAN. As well as the mail of user john should get by the jane user.

Explanation

Answers:

  1. iptables -t filter -A INPUT -s 192.168.0.0/24 -p tcp --dport 22 -j DROP iptables is the build-in firewall tools, used to filter the packets and for nat. By identifying Source Address, Destination Address, type of protocol, source and destination port we can filter the packets. -s ->Source Address -d -> Destination Address -p ->Layer 3 Protocol -d -> Destination Address --sport Source Prot --dport Destination Port -i -> Incoming Interface -o -> Outgoing Interface -t -> Table either filter or nat or mangle -A -> Chain can be either INPUT, OUTPUT, FORWARD, PREROUTING, POSTROUTING. ssh service use the 22 port so we can block connection from outside the LAN.

Topics

#sendmail#mail aliases#local delivery

Community Discussion

No community discussion yet for this question.

Full RH302 Practice