/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! */


I currently have a straightforward setup: a linux gateway with a class C
network on one side and our ISP on the other. On our gateway machine I
have an ethernet card (eth0) and two ISDN lines. One is used for the ISP
(IPPP0), the other is idle.
 
How can I use the second ISDN line to dial a second ISP, and dedicate
that 
line to one of our PCs?

I had this idea but it did not work. I set up a virtual server and
second PPP connection by tacking these lines onto the end of
/etc/rc.d/rc.local

   ifconfig eth0:0 192.168.1.99
   route add -host 192.168.1.99 dev eth0:0

   (lots of /usr/local/sbin/isdnctrl setup for the second ISDN phone
line)

   /sbin/ifconfig ippp1 192.168.1.99 pointopoint $SECONDISPIP 
   /sbin/ifconfig ippp1 -arp -broadcast
   /sbin/route add $SECONDISPIP ippp1
   /usr/local/sbin/ipppd user $MYNAME remotename $SECONDISPNAME 

I tried a simple firewall by making a new /etc/rc.d/rc.firewall with
these rules, to see if I could make a connection from one PC to the
second ISP. 

   /sbin/ipchains -P forward DENY
   /sbin/ipchains -A forward -s 192.168.1.25 -d ippp1 -l -j MASQ
   /sbin/ipchains -A forward -p 0 -s 192.168.1.0 -i eth0 -l -j MASQ
   /sbin/ipchains -A forward -s 0.0.0.0/0 -d ippp1 -l -j REJECT

Ater rebooting, the routes all appeared, but the second line was not
used.


Thanks,

Nick

-- 
Nick Hardiman
Creative Digital                 
http://www.creativedigital.co.uk/                   
Kenham House                      Tel: +44 (0) 117 914 9420 
Wilder Street                     Fax: +44 (0) 117 914 9424
Bristol BS2 8PD                   new media, new understanding

_______________________________________________
Masq maillist  -  [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ -- THIS INCLUDES 
UNSUBSCRIBING!
or email to [EMAIL PROTECTED]

PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.

Reply via email to