Quoting Patrick Lesslie <[EMAIL PROTECTED]>:

> On Fri, Apr 02, 2004 at 05:15:28PM +1000, Amanda wrote:
> > I'm setting up an SME server as server & gateway. It has 2 ethernet cards,
> eth0
> > (192.168.0.210)to the local network, eth1 (10.0.0.3)to the adsl modem
> (10.0.0.1).
> > 
> > >From a machine on the Lan, I can access the internet just fine.
> > 
> > On the SME server, I'm running pptp client to establish a tunnel into the
> > company's Windows 2000 VPN server. This also works fine. (I'm running rsync
> &
> > mysql replication over it).
> > 
> > How do I add a route so local users on the lan can see machines on the lan
> at
> > head office. I can see them just fine from the SME server.
> > 
> > route add -net 10.0.0.150 netmask 255.255.255.255 dev ppp0
> > 
> > 10.0.0.150 being an intranet web server on the company's lan. This is the
> > machine I'm rsyncing & replicating against.
> > 
> > I can ping 10.0.0.150 from the SME server, but not from my machine on the
> Lan.
> 
> This looks solveable, but I'm a bit confused.  Could you post
> ifconfig and route table?  What's happening with the ping packets?
> Also it looks a bit funny have a host entry for -net, but it seems
> fair enough all the same.  I guess you could try using -host.
> 
> Also, is there a firewall on the server?
> 
> Patrick

output of netstat -rn taken earlier today
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.0.0.150      0.0.0.0         255.255.255.255 UH        0 0          0 ppp0
10.0.0.104      0.0.0.0         255.255.255.255 UH        0 0          0 ppp0
10.0.0.0        0.0.0.0         255.255.255.0   U         0 0          0 ppp0
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
10.0.0.0        0.0.0.0         255.0.0.0       U         0 0          0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         10.0.0.1        0.0.0.0         UG        0 0          0 eth1

output of ifconfig taken just now after a recent reboot.
eth0      Link encap:Ethernet  HWaddr 00:E0:29:67:18:1C  
          inet addr:192.168.0.210  Bcast:192.168.0.255  Mask:255.255.255.0
          EtherTalk Phase 2 addr:65280/31
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:81 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 
          RX bytes:2148 (2.0 Kb)  TX bytes:8917 (8.7 Kb)

eth1      Link encap:Ethernet  HWaddr 00:00:E8:12:8B:60  
          inet addr:10.0.0.3  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:298 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:466 dropped:0 overruns:0 carrier:932
          collisions:0 
          RX bytes:24767 (24.1 Kb)  TX bytes:0 (0.0 b)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          EtherTalk Phase 2 addr:0/0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:25 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 
          RX bytes:2480 (2.4 Kb)  TX bytes:2480 (2.4 Kb)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:10.0.0.87  P-t-P:10.0.0.104  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1000  Metric:1
          RX packets:21 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 
          RX bytes:1020 (1020.0 b)  TX bytes:795 (795.0 b)

Yes, there's a firewall on it. I didn't configure it, it comes on by default
when you enable the gateway.

All I want to do is route several specific IP's from eth0 to ppp0.
Is routing tables the wrong approach. Should I be reading the firewall howto
instead?
And, of course, it's
route add -host 10.0.0.150 dev ppp0

It's a bit confusing, because eth1 to adsl modem is on 10.0.0.0, and the lan on
the end of ppp0 is also on 10.0.0.0.

Amanda

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to