Thread View: linux.redhat.misc
3 messages
3 total messages
Started by Monte Phillips
Fri, 02 Jul 1999 00:00
IPMasq/outside access problem!
Author: Monte Phillips
Date: Fri, 02 Jul 1999 00:00
Date: Fri, 02 Jul 1999 00:00
96 lines
4089 bytes
4089 bytes
The set up: Linux server <- Win98 RH6.0 2.2.9
ethernet samba 2.0.4b ALL samba functions work both directions.
ppp dials and connects lynx/netscape access net OK
IPv4 forwarding is compiled in kernel and is OK on boot
To initiate the IP masquerade I enter
ipchains -P forward DENY
ipchains -A forward -i ppp0 -j MASQ
(no errors)
ppp-up (dials and connects, gets dynamic IP all OK)
ping ISP address and it does nothing
go to Winbox turn on browser call my Apache locally it works
call any IP ouside of my local network and I get error site not found
Below is data from all the files I could think of that are involved.
What obvious snake is biting me?
--------------------------------------------
(/etc/HOSTNAME)
LinuxBox
(/etc/hosts)
127.0.0.1 localhost localhost.localdomain
192.168.0.1 LinuxBox.cmx LinuxBox
192.168.0.2 Win98
(/etc/lmhosts)
localhost LinuxBox
Win98 Win98
(/etc/hosts.allow)
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
Win98
swat: 127.0.0.1 192.168.0.
(/etc/hosts.deny)
#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as
decided
# by the '/usr/sbin/tcpd' server.
(/etc/host.conf)
order hosts, nis, bind
multi on
(/etc/resolve.conf)
search hal-pc.org LinuxBox.cxm
nameserver 204.52.135.1
nameserver 204.52.135.2
nameserver 192.168.0.1
(Results of ]# route )
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref
Use Iface
204.52.135.1 LinuxBox.cmx 255.255.255.255 UGH 0 0
0 eth0
LinuxBox.cmx * 255.255.255.255 UH 0 0
0 eth0
127.0.0.1 * 255.255.255.255 UH 0 0
0 lo
192.168.0.0 * 255.255.255.0 U 0 0
0 eth0
127.0.0.0 * 255.0.0.0 U 0 0
0 lo
default LinuxBox.cmx 0.0.0.0 UG 0 0
0 eth0
(results of ]# ifconfig)
eth0 Link encap:Ethernet HWaddr 00:20:AF:68:40:3F
inet addr:192.168.0.1 Bcast:192.168.0.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:724 errors:0 dropped:0 overruns:0 frame:0
TX packets:747 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:11 Base address:0x240
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:6432 errors:0 dropped:0 overruns:0 frame:0
TX packets:6432 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
Thats it. Just won't let network access the ppp0(outside world).
and Yep, I've read the manuals Net-3, Ip-Masq, Ip-Chains...not only
read them I have proofed them, turned them into pdf files and printed
them.<G>
Re: IPMasq/outside access problem!
Author: Kasper Leonhardt
Date: Fri, 02 Jul 1999 00:00
Date: Fri, 02 Jul 1999 00:00
11 lines
1208 bytes
1208 bytes
I believe that you got a ppp problem. Not an IPMasq one. I think that the ppp-network adaptor should be visible on ifconfig. Try posting the ppp-connect scripts and so on. Kasper Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.
Re: IPMasq/outside access problem!
Author: Matt Hyclak
Date: Fri, 02 Jul 1999 00:00
Date: Fri, 02 Jul 1999 00:00
105 lines
4761 bytes
4761 bytes
Do you have DNS setup on the windows machine? It sounds like you know what you're doing, but maybe a statement of the obvious is all you need as a reminder ;-) Also make sure you have 192.168.0.1 as your gateway from the windows machine. Matt Monte Phillips <montep@hal-pc.org> wrote in message news:377c25d0.9448604@news.hal-pc.org... > The set up: Linux server <- Win98 RH6.0 2.2.9 > ethernet samba 2.0.4b ALL samba functions work both directions. > ppp dials and connects lynx/netscape access net OK > IPv4 forwarding is compiled in kernel and is OK on boot > > To initiate the IP masquerade I enter > ipchains -P forward DENY > ipchains -A forward -i ppp0 -j MASQ > (no errors) > > ppp-up (dials and connects, gets dynamic IP all OK) > ping ISP address and it does nothing > > go to Winbox turn on browser call my Apache locally it works > call any IP ouside of my local network and I get error site not found > > Below is data from all the files I could think of that are involved. > > What obvious snake is biting me? > -------------------------------------------- > (/etc/HOSTNAME) > LinuxBox > > (/etc/hosts) > 127.0.0.1 localhost localhost.localdomain > 192.168.0.1 LinuxBox.cmx LinuxBox > 192.168.0.2 Win98 > > (/etc/lmhosts) > localhost LinuxBox > Win98 Win98 > > (/etc/hosts.allow) > # > # hosts.allow This file describes the names of the hosts which are > # allowed to use the local INET services, as decided > # by the '/usr/sbin/tcpd' server. > # > Win98 > swat: 127.0.0.1 192.168.0. > > (/etc/hosts.deny) > # > # hosts.deny This file describes the names of the hosts which are > # *not* allowed to use the local INET services, as > decided > # by the '/usr/sbin/tcpd' server. > > (/etc/host.conf) > order hosts, nis, bind > multi on > > (/etc/resolve.conf) > search hal-pc.org LinuxBox.cxm > nameserver 204.52.135.1 > nameserver 204.52.135.2 > nameserver 192.168.0.1 > > (Results of ]# route ) > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref > Use Iface > 204.52.135.1 LinuxBox.cmx 255.255.255.255 UGH 0 0 > 0 eth0 > LinuxBox.cmx * 255.255.255.255 UH 0 0 > 0 eth0 > 127.0.0.1 * 255.255.255.255 UH 0 0 > 0 lo > 192.168.0.0 * 255.255.255.0 U 0 0 > 0 eth0 > 127.0.0.0 * 255.0.0.0 U 0 0 > 0 lo > default LinuxBox.cmx 0.0.0.0 UG 0 0 > 0 eth0 > > (results of ]# ifconfig) > eth0 Link encap:Ethernet HWaddr 00:20:AF:68:40:3F > inet addr:192.168.0.1 Bcast:192.168.0.255 > Mask:255.255.255.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:724 errors:0 dropped:0 overruns:0 frame:0 > TX packets:747 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:100 > Interrupt:11 Base address:0x240 > > lo Link encap:Local Loopback > inet addr:127.0.0.1 Mask:255.0.0.0 > UP LOOPBACK RUNNING MTU:3924 Metric:1 > RX packets:6432 errors:0 dropped:0 overruns:0 frame:0 > TX packets:6432 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > > Thats it. Just won't let network access the ppp0(outside world). > and Yep, I've read the manuals Net-3, Ip-Masq, Ip-Chains...not only > read them I have proofed them, turned them into pdf files and printed > them.<G>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads