Differences between revisions 2 and 3
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
''see https://wiki.club.cc.cmu.edu/org-auth/ccwiki/natrium.club.cc.cmu.edu'' ''See https://wiki.club.cc.cmu.edu/org-auth/ccwiki/natrium.club.cc.cmu.edu''

''See http://www.bctes.com/nat-linux-iptables.html''

Modify {{{/etc/sysctl.conf}}}
Line 18: Line 22:
Modify br<interface> in /etc/network/interfaces: Modify br<interface> in {{{/etc/network/interfaces}}}:

Setting up NAT

Current NAT server is natrium.club.cc.cmu.edu

Setting up NAT server/gateway

See https://wiki.club.cc.cmu.edu/org-auth/ccwiki/natrium.club.cc.cmu.edu

See http://www.bctes.com/nat-linux-iptables.html

Modify /etc/sysctl.conf

Adding machines to NAT

Assuming you want to add br1 to natrium as 10.0.2.2

Temporary

ifconfig eth1 10.0.2.2 netmask 255.255.255.0 broadcast 10.0.2.255
route add default gw 10.0.2.1 br1

Permanent

Modify br<interface> in /etc/network/interfaces:

auto br<interface>
iface br<interface> inet static
        address 10.0.2.2 
        netmask 255.255.255.0
        network 10.0.2.0
        broadcast 10.0.2.255
        gateway 10.0.2.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 128.237.157.12 128.237.157.14
        dns-search club.cc.cmu.edu
        bridge_ports eth<interface#>

Services/NAT (last edited 2013-10-27 04:27:49 by scgruber@CLUB.CC.CMU.EDU)