javmarcan
11-01-2002, 06:19 PM
I want to use my linux box as a router between two networks
how do I have this?
iptables? routed?
thanks
how do I have this?
iptables? routed?
thanks
|
Click to See Complete Forum and Search --> : routing javmarcan 11-01-2002, 06:19 PM I want to use my linux box as a router between two networks how do I have this? iptables? routed? thanks irish_rover 11-02-2002, 01:38 PM errr...umm... my router script looks something like this... #!/bin/bash /sbin/modprobe ipt_MASQUERADE /usr/sbin/iptables -F; /usr/sbin/iptables -t nat -F; /usr/sbin/iptables -t mangle -F /usr/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE echo 1 > /proc/sys/net/ipv4/ip_forward /usr/sbin/iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT /usr/sbin/iptables -A INPUT -m state --state NEW -i ! ppp0 -j ACCEPT /usr/sbin/iptables -P INPUT DROP /usr/sbin/iptables -A FORWARD -i ppp0 -o ppp0 -j REJECT Do a search on http://www.tldp.org they have a lot of useful how-to's. justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |