Open main menu

CDOT Wiki β

Changes

Highbank Fedora Installation Config

930 bytes added, 14:52, 3 August 2013
DHCP configuration
== NAT configuration ==
The firewall and NAT is configured with a iptables script: /root/iptables.sh
1. Stop/disable firewalld
<pre>
systemctl stop firewalld
systemctl disable firewalld
</pre>
 
2. Start/enable iptables
<pre>
systemctl start iptables
systemctl enable iptables
</pre>
 
3. Run the iptables script and save the iptables rules
<pre>
/root/iptables.sh
iptables-save > /etc/sysconfig/iptables
</pre>
 
File: /root/iptables.sh
<pre>
#!/bin/bash
== DHCP configuration ==
1. Start/enable the network service
<pre>
systemctl start network
systemctl enable network
</pre>
 
2. Set static ip address on interface facing private network
 
File: /etc/sysconfig/network-scripts/ifcfg-p11p1
<pre>
TYPE=Ethernet
DEVICE=p11p1
BOOTPROTO=static
NM_CONTROLLED=yes
ONBOOT=yes
IPADDR=192.168.1.254
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
DNS1=142.204.43.43
DNS2=8.8.8.8
DOMAIN="proximity.on.ca senecac.on.ca"
HWADDR=00:0A:CD:1E:83:BA
</pre>
 
3. Restart the NetworkManager service
<pre>
systemctl restart NetworkManager
</pre>
 
4. Configure dhcpd
 
File: /etc/dhcp/dhcpd.conf
<pre>
option domain-name-servers 142.204.1.2,142.204.43.43;
198
edits