On Wed, 13 Mar 2002 at 19:47, bert l wrote:
> hello every one, like to ask some questions in setting up dailin server.
> I've been installing dailin using ppp and mgetty so that i could connect
> my computer at home to the office and have an internet connection but to
> no avail coz i can connect to the office but i can't browse or surf and
> even ping. so my basic problem is how can i browse to the internet?

First start by isolating the problem.

 o Upon connection ensure that the client has an IP address. You can use
ifconfig on Linux or winipcfg on Windows to do this.

 o Next, check if you can reach the dial-up server. For example if the
local IP address of the server you're calling is 192.168.0.1, ping that
and make sure you can connect to it. If you cannot connect to the server
then you have a problem with the dial-up connection settings, and we
should work from there.

 o If you can ping the dial-up server (and maybe access the local
webserver if it has one), then your connection is working and it's time to
find out why you can't reach the rest of the world. If you cannot ping an
outside site, make sure you have IP Masquerading set up using either
ipchains or iptables depending on what kernel you're using.

 o As an alternative or a complement to IP Masquerading (aka NAT) you may
want to set up a Squid server to allow for proxying of web connections.
You set this up on the server, and maybe even on your client. But the
connection must be working first.

> i've checked it using iptables -F and it has no rules.

What you're doing is flushing the table (ie: removing any rules). Do this
(as root):

# iptables -t nat -L

If you do not have any masquerading rules set, you can have a very
straightforward one like so:

# iptables -t nat -A POSTROUTING -s $LAN_NET -o $INET_IFACE -j MASQUERADE

where $LAN_NET is the address of your local network (ie: 192.168.0.0/24)
and $INET_IFACE is the outgoing interface (ie: eth1).

> my next questions is does ms-dns aa bb yy cc in /etc/options means i
> will use the dns number the one that is being used by the server that
> can be found on the /etc/resolv.conf?

I don't quite get this. What I've done to make dial-up access convenient
to configure on the client side is to have /etc/ppp/options.tty{S0,S1}
which defines configuration options per port.

These files look somewhat like this:

        gusi:dialup0
        192.168.0.1:192.168.0.90
        domain leathercollection.ph
        -chap
        +pap
        login
        nopersist
        mru 1500
        mtu 1500
        nodefaultroute
        nodetach
        proxyarp
        ms-dns 192.168.0.1
        ms-wins 192.168.0.1

The first line defines the server's hostname and the client's default
hostname. The second defines the server's local IP address and the
client's IP address. ms-dns defines the default DNS server to be used, and
ms-wins defines the default WINS server to be used.

This allows clients to define only the protocol to use (TCP/IP), the
telephone number, the login and password. And it works from there. :)

 --> Jijo

--
Federico Sevilla III  :: [EMAIL PROTECTED]
Network Administrator :: The Leather Collection, Inc.
GnuPG Key: http://jijo.leathercollection.ph/jijo.gpg

_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to