🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.networking
Article #172

Win-2-Linux-2-Net problem (much detail furnished)

#172
From: Monte Phillips
Date: Fri, 02 Jul 1999 00:00
202 lines
8683 bytes
The Network:
Win98 >--eth0 --> LinuxBox -> modem -> ISP
192.168.0.2       192.168.0.1          nameservers: 204.52.135.1 
GW 192.168.0.1    RH6.0 2.2.9          from ISP     204.52.135.2

OBJECT: connect to ISP from Win98 thru LinuxBox

Whats installed:  
All necessary kernel options are installed (I believe)
Samba 2.0.4b  as mentioned 100% functional both directions. 
No probs with samba at all.
ipv4 is activated on bootup from kernel
Ipmasqadm is functional
IPChains is functional
Squid is functional ( though because of its memory hogging, 
I do not wish to use it)

What works at present: Samba - all functions and services 
ppp0 from linuxBox  I can use lynx and netscape to internet

What I have done so far: 
Read and even printed out, Net-3, Firewall, IPChains, PPP HOWTO's
Tried almost all examples given (that seemed to apply to my minimal
net)

The test that seemed to me most apt to work(but didn't) was:
# ppp-up    ok
# ipchains -P DENY
# ipchains -A forward  -s ppp0 -j MASQ
# ipmasqadm portfw -a -P tcp -L xxx.xxx.xxx.x 80 -R yyy.yyy.yyy.y 80
# ipmasqadm portfw -a -P tcp -L xxx.xxx.xxx.x 1464 -R yyy.yyy.yyy.y
1464
# ipmasqadm portfw -a -P tcp -L xxx.xxx.xxx.x 1604 -R yyy.yyy.yyy.y
1604
(tried this with the last two lines and without them, same results.  
I am assuming they have something to do with load equalizing)  
I have substituted all combinations of IP's for the xxx's and yyy's 
only ones on my net of course<G>, AND the nameserver IP's as well,
they are the ones also used to access the ISP's webpage.

FOLLOWING is data from files and outputs of commands:

-hosts
127.0.0.1	localhost	localhost.localdomain
192.168.0.1	LinuxBox.cmx	LinuxBox	LinuxBox.cxm
192.168.0.2	Win98

-lmhosts
localhost    LinuxBox
Win98       Win98

-resolv.conf
search hal-pc.org LinuxBox.cxm
nameserver 204.52.135.1
nameserver 204.52.135.2
nameserver 192.168.0.1

*Note all of the below was obtained while ppp0 was active and
connected to ISP

-output from ppp-up
Serial connection established.
Using interface ppp0
Connect: ppp0 <--> /dev/modem
local  IP address 206.180.129.186
remote IP address 204.52.135.145
hal-pc.org: ppp0 206.180.129.186 to 204.52.135.145
Up since 02:44PM Fri Jul 02, 1999

-Kernel Interface table
Iface   MTU Met    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP
TX-OVR Flg
eth0   1500   0     1095      0      0      0     7068      0      0
0 BRU
lo     3924   0     1856      0      0      0     1856      0      0
0 LRU
ppp0   1524   0       30      0      0      0       46      0      0
0 OPRU


-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:1073 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7062 errors:0 dropped:0 overruns:0 carrier:0
          collisions:2 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:1816 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1816 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:206.180.129.186  P-t-P:204.52.135.145
Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1524  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 


-netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address
State      
tcp        0      0 LinuxBox.cm:netbios-ssn Win98:1340
ESTABLISHED 
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node Path
unix  1      [ ]         STREAM     CONNECTED     2007   @000001ee
unix  1      [ ]         STREAM     CONNECTED     904    @00000096
unix  1      [ ]         STREAM     CONNECTED     583    @00000047
unix  0      [ ]         STREAM     CONNECTED     116    @00000011
unix  1      [ ]         STREAM     CONNECTED     1351   @00000120
unix  1      [ ]         STREAM     CONNECTED     454    @00000023
unix  0      [ ]         DGRAM                    1262
/var/run/news/control
unix  1      [ ]         STREAM     CONNECTED     1241   @00000103
unix  1      [ ]         STREAM     CONNECTED     1244   @00000104
unix  1      [ ]         STREAM     CONNECTED     2008   /dev/log
unix  1      [ ]         STREAM     CONNECTED     1352   /dev/log
unix  0      [ ]         DGRAM                    1264   
unix  1      [ ]         STREAM     CONNECTED     1245   /dev/log
unix  1      [ ]         STREAM     CONNECTED     1242   /dev/log
unix  1      [ ]         STREAM     CONNECTED     905    /dev/log
unix  1      [ ]         STREAM     CONNECTED     584    /dev/log
unix  1      [ ]         STREAM     CONNECTED     455    /dev/log

(****some of the following lines are wrapped, dam cheap editor, sorry)

-route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref
Use Iface
204.52.135.145  *               255.255.255.255 UH    0      0
0 ppp0
192.168.0.1     *               255.255.255.255 UH    0      0
0 eth0
192.168.0.0     192.168.0.1     255.255.255.0   UG    0      0
0 eth0
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         204.52.135.145  0.0.0.0         UG    0      0
0 ppp0
default         192.168.0.1     0.0.0.0         UG    0      0
0 eth0


-route -nNvee
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref
Use Iface    MSS   Window irtt
204.52.135.145  0.0.0.0         255.255.255.255 UH    0      0       
0 ppp0     0     0      0
192.168.0.1     0.0.0.0         255.255.255.255 UH    0      0
0 eth0     0     0      0
192.168.0.0     192.168.0.1     255.255.255.0   UG    0      0
0 eth0     0     0      0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0
0 eth0     0     0      0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0
0 lo       0     0      0
0.0.0.0         204.52.135.145  0.0.0.0         UG    0      0
0 ppp0     0     0      0
0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0
0 eth0     0     0      0

-traceroute
 1  206.180.129.186.dial-ip.hal-pc.org (206.180.129.186)  1.044 ms
0.613 ms  0.526 ms

*Note these ping addresses are those obtained from the ifconfig query
*Any pings to addresses other than those shown yielded no returns

-ping 1
PING 206.180.129.186 (206.180.129.186): 56 data bytes
64 bytes from 206.180.129.186: icmp_seq=0 ttl=255 time=0.9 ms
64 bytes from 206.180.129.186: icmp_seq=1 ttl=255 time=0.5 ms
64 bytes from 206.180.129.186: icmp_seq=2 ttl=255 time=0.5 ms

--- 206.180.129.186 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.5/0.6/0.9 ms

-ping 2
PING 204.52.135.145 (204.52.135.145): 56 data bytes

--- 204.52.135.145 ping statistics ---
9 packets transmitted, 0 packets received, 100% packet loss


Well that's the whole barrel,  whats wrong?

Answers in ng are encouraged :) but I won't deny an email
response <G>  TIA  Monte montep@hal-pc.org
Technical Details
Message-ID: <377e202e.23938215@news.hal-pc.org>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111240,7f79a78370f03a37,start
X-Google-Attributes: gid111240,public
X-Google-Thread: 115a6f,7f79a78370f03a37,start
X-Google-Attributes: gid115a6f,public
X-Google-Thread: 102983,7f79a78370f03a37,start
X-Google-Attributes: gid102983,public
X-Google-Thread: 10f12e,7f79a78370f03a37,start
X-Google-Attributes: gid10f12e,public
X-Google-Thread: faa64,7f79a78370f03a37,start
X-Google-Attributes: gidfaa64,public
X-Google-Thread: 10669a,7f79a78370f03a37,start
X-Google-Attributes: gid10669a,public
From: montep@hal-pc.org (Monte Phillips)
Subject: Win-2-Linux-2-Net problem  (much detail furnished)
Date: 1999/07/02
Message-ID: <377e202e.23938215@news.hal-pc.org>
X-Deja-AN: 496564687
Content-Transfer-Encoding: 7bit
Sender: @206.180.128.140.dial-ip.hal-pc.org
Organization: Houston Area League of PC Users, Inc.
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: comp.os.linux.networking,alt.os.linux,aus.computers.linux,comp.protocols.smb,linux.redhat.misc,linux.redhat.ppp