Home arrow Slackware arrow How do i setup a Slackware Linux as a router with NAT?
How do i setup a Slackware Linux as a router with NAT? PDF  
Digg Reddit Stumble Upon Facebook Twitter Google Technorati Bookmark
Thursday, 05 June 2008
1. Setup network by editing /etc/rc.d/rc.inet1.conf

2. Add the following lines to /etc/rc.d/rc.local:

# -------------- /etc/rc.d/rc.local -----------------------
#!/bin/sh
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
iptables -F
iptables -t mangle -F
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j SNAT --to-source 80.x.y.z

echo 1 > /proc/sys/net/ipv4/ip_forward

# start dhcp server on LAN
dhcpd eth1
# ------------ eof ------------------------------------You should replace 80.x.y.z with your public (WAN)  IP.

 
< Prev   Next >

Misc

Linux Tips

Polls

What is your favorite Linux Distribution ? (we just added Mint and reset the pool data)