Paragraph Question 25 What is wrong in the interfaces file b
Solution
1. What is wrong in the interfaces file below?
auto etho
Nothing is wrong in the below interface file auto etho
2.What files can be used to determine how the resolver looks things up to
resolve IP addresses and domain names?
host.conf file is used to determine the IP addressand domian names
The settings from host.conf may be overridden using a number of environment variables
Sample host.conf file
RESOLV_HOST_CONF
This variable specifies a file to be read instead of /etc/host.conf.
RESOLV_OVERRIDE_TRIM_DOMAINS
This variable specifies a list of trim domains that override those given in host.conf.
3.Describe what is being done in this statement
iptables-I INPUT -i eth1 -p tcp -s 192.168.56.1\\
--sport 1024:65535 -d 192.168.56.2 --dport22\\
-j ACCEPT
The iptables consists of certain rules
-I INPUT 5 would insert the rule into the INPUT chain and make it the 5th rule in the list.
-i Only match if the packet is coming in on the specified interface.
-p tcp - The connection protocol used.
-s --source - address[/mask] source specification
--dport - The destination port(s) required for this rule. A single port may be given,
or a range may be given as start:end, which will match all ports from start to end, inclusive.
j - Jump to the specified target.
ACCEPT - Accept the packet and stop processing rules in this chain.
5.What are the default settings for the iptables? Spell out the actual line please?
sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
6.What advantages does a command line only server like UBuntu have over a GUI interface?
Due to a higher degree of memorization and familiarity needed for operation and navigation,
new users find operating a command line interface more difficult than a GUI.
Command line users only need to utilize a keyboard to navigate the interface, often resulting in faster performance.
GUI
****
A GUI offers a lot of access to files, software features, and the operating system as a whole.
Being more user friendly than a command line, especially for new users, a GUI is utilized by more users.

