Search:  
Gentoo Wiki

Gentoo_Terminal_Server

Having used the Knoppix Terminal Server from a Knoppix CD i wanted to cofigure something similar for my laptop

Ive got eth0 as the connection to the net and eth2 as the connection to the LAN (you can also create a wireless LAN connection from your wireless card - I dont know about range/power etc)


packages that you need

dnsmasq shorewall

configure the NIC that you want to give out addresses with a static IP address

~ # grep eth2 /etc/conf.d/net

File: File /etc/conf.d/net
config_eth2=( "10.0.0.1 netmask 255.255.255.0  broadcast 10.0.0.255")

and dnsmasq to give out IP addresses on eth2

~ # grep ^[A-Za-z0-9] /etc/dnsmasq.conf

File: File /etc/dnsmasq.conf
 
domain-needed
bogus-priv
server=/yournetwork.abc/127.0.0.1
address=/doubleclick.net/127.0.0.1
interface=eth2
bind-interfaces
expand-hosts
domain=yournetwork.abc
dhcp-range=10.0.0.3,10.0.0.253,2h
dhcp-option=19,0           # option ip-forwarding off
dhcp-option=44,0.0.0.0     # set netbios-over-TCP/IP nameserver(s) aka WINS server(s)
dhcp-option=45,0.0.0.0     # netbios datagram distribution server
dhcp-option=46,8           # netbios node type
dhcp-option=47             # empty netbios scope.
dhcp-lease-max=150
dhcp-authoritative 
  

and shorewall to configure the firewall

File: File shorewall
 
gravity ~ # cat /etc/shorewall/interfaces |grep -v '#'
       net     eth0    detect          dhcp
       loc     eth2
gravity ~ # cat /etc/shorewall/masq  |grep -v '#'
      eth0    eth2
gravity ~ # cat /etc/shorewall/zones  |grep -v '#'
        fw      firewall
        net     ipv4
        loc     ipv4
 


You can add a cacheing proxy Squid (in HOWTO_setup_a_home-server )

Retrieved from "http://www.gentoo-wiki.info/Gentoo_Terminal_Server"

Last modified: Fri, 05 Sep 2008 22:45:00 +0000 Hits: 922