Dialin Server - Connects but no net activity. Any pointers?
From: Warren Smith (warren_at_connect4.com.au)
Date: 10/06/03
- Next message: Carsten Keller: "Iptables problem"
- Previous message: William Park: "Re: Dial up speed"
- Next in thread: Stephan Reihle: "Re: Dialin Server - Connects but no net activity. Any pointers?"
- Reply: Stephan Reihle: "Re: Dialin Server - Connects but no net activity. Any pointers?"
- Reply: Mark Taylor: "Re: Dialin Server - Connects but no net activity. Any pointers?"
- Reply: Clifford Kite: "Re: Dialin Server - Connects but no net activity. Any pointers?"
- Reply: Clifford Kite: "Re: Dialin Server - Connects but no net activity. Any pointers?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 5 Oct 2003 22:28:51 -0700
Hi all,
I'm trying to setup a dialin server on a redhat 7.3 box that sits
on our network. The machine gets internet connection by a defaultroute
on a gateway machine that NATs the machines on the 192.168.0.x LAN.
The dialin server has one NIC that is connected to the lan/accesses
the net. Basically, I have set it up so I should be able to dial in
and use the net/LAN using a windows machine + dial up modem. I can
connect to the machine, auth username/password but when I connect, no
internet activity happens nor can I ping anywhere (net or lan or
dialup server IPS) from the windows machine. The relative info is:
The IP of eth0 on dialin is 192.168.0.75
THE IP I have assigned for ppp0 is 192.168.0.76
the IP of the gateway/NAT machine is 192.168.0.1
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
/usr/local/etc/mgetty+sendfax/login.config
/AutoPPP/ - @ /usr/sbin/pppd file /etc/ppp/options.server
* - - /bin/login @
---------------
/etc/ppp/options.server
# -detach <- I commented it out since it seemed I was getting d/c
with it left in
asyncmap 0
modem
crtscts
lock
nodefaultroute
proxyarp
login
debug
ms-dns 203.8.183.1 <- the DNS we use from our upstream provider
---------------
/etc/ppp/options.ttyS0
192.168.0.75:192.168.0.76
netmask 255.255.255.0
The modem connected to the dialin server was found on ttyS0 by wvdial
---------------
/etc/inittab
S0:2345:respawn:/usr/local/sbin/mgetty -x 5 ttyS0
---------------
Output from log files
/var/log/mgetty.ttyS0
10/06 14:54:57 yS0 match: user='/AutoPPP/', key=''
10/06 14:54:57 yS0 match: user='/AutoPPP/', key=''
10/06 14:54:57 yS0 match: user='/AutoPPP/', key='/AutoPPP/'*** hit!
10/06 14:54:57 yS0 login: utmp entry: /AutoPPP/
10/06 14:54:57 yS0 utmp + wtmp entry made
10/06 14:54:57 yS0 calling login: cmd='/usr/sbin/pppd', argv[]='pppd
file /etc/ppp/options.server'
10/06 14:54:57 yS0 setenv: 'CALLER_ID=none'
10/06 14:54:57 yS0 setenv: 'CONNECT=33600'
10/06 14:54:57 yS0 setenv: 'DEVICE=ttyS0'
10/06 14:54:57 ##### data dev=ttyS0, pid=1599, caller='none',
conn='33600', name='', cmd='/usr/sbin/pppd', user='/AutoPPP/'
-----------------
/var/log/daemon
Oct 6 14:39:47 access pppd[1383]: pppd 2.4.1 started by /AutoPPP/,
uid 0
Oct 6 14:39:47 access pppd[1383]: using channel 1
Oct 6 14:39:48 access pppd[1383]: Using interface ppp0
Oct 6 14:39:48 access pppd[1383]: Connect: ppp0 <--> /dev/ttyS0
*heap of LCP lines removed*
Oct 6 14:39:54 access pppd[1383]: found interface eth0 for proxy arp
Oct 6 14:39:54 access pppd[1383]: local IP address 192.168.0.75
Oct 6 14:39:54 access pppd[1383]: remote IP address 192.168.0.76
Oct 6 14:39:54 access pppd[1383]: Script /etc/ppp/ip-up started (pid
1418)
Oct 6 14:39:54 access pppd[1383]: Script /etc/ppp/ip-up finished (pid
1418), status = 0x0
Routing:
Before connecting:
]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0
0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0
0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0
0 eth0
after connecting:
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface
192.168.0.76 0.0.0.0 255.255.255.255 UH 0 0
0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0
0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0
0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0
0 eth0
I think I may need to do some forwarding with iptables. I did some
forwarding/nat stuff I found from google but it didn't seem to help.
I'm not too sure if NATing from the dialin server to another NAT
gateway box would be stuffing my connection up at all? Also, no other
firewalls/iptable stuff is on the dialin box.
Any help is appreciated.
- Next message: Carsten Keller: "Iptables problem"
- Previous message: William Park: "Re: Dial up speed"
- Next in thread: Stephan Reihle: "Re: Dialin Server - Connects but no net activity. Any pointers?"
- Reply: Stephan Reihle: "Re: Dialin Server - Connects but no net activity. Any pointers?"
- Reply: Mark Taylor: "Re: Dialin Server - Connects but no net activity. Any pointers?"
- Reply: Clifford Kite: "Re: Dialin Server - Connects but no net activity. Any pointers?"
- Reply: Clifford Kite: "Re: Dialin Server - Connects but no net activity. Any pointers?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|