(E-Mail Removed) wrote:
> I have a linux box (b1) connected to an ethernet adsl modem
> (rth0) and also connected to a windows (b2) box through a wireless
> connection (ra0).
> although b1 is the default gateway and dns for b2, b2 can't access the
> internet (I'm using 191.168.0.0 as my local newtwork address is this
> wrong)
Is that a question? If so then yes, it's wrong, although you may get
away with it since you intend to use masquerading. Why not use one
of the private IP address ranges?
> notes:
> b2 can ping b1. (and vice verse)
> ip forwording is enabled on b1.
> the adsl connection is the default gateway on b1.
> I've tried
> iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE
> and I didn't work
Of course not. The masqueraded interface has to be the PPP interface,
which is here renamed from ppp0 to dsl0 (obfuscation introduced by your
distribution (or perhaps kppp?) :P).
> Any help getting b2 to connect the net through b1?
Since there it appears there is only one host behind the ADSL connection
host the easiest thing to do would be to set the MTU of the Ethernet
interface on b2 to 1454. Otherwise see section TCPMSS in man iptables.
> results from running ifconfig:
> dsl0 Link encap:Point-to-Point Protocol
> inet addr:xxxxxxxxxx P-t-P:xxxxxxxxxxx Mask:255.255.255.255
> UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1454 Metric:1
> RX packets:10951 errors:0 dropped:0 overruns:0 frame:0
> TX packets:14264 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:3
> RX bytes:1836039 (1.7 Mb) TX bytes:1992594 (1.9 Mb)
> eth0 Link encap:Ethernet HWaddr 00:30:4F:07:19:40
> inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
> inet6 addr: fe80::230:4fff:fe07:1940/64 Scope:Link
> UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:94642 errors:0 dropped:0 overruns:0 frame:0
> TX packets:84924 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:86135311 (82.1 Mb) TX bytes:9989004 (9.5 Mb)
> Interrupt:11 Base address:0x2000
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:545 errors:0 dropped:0 overruns:0 frame:0
> TX packets:545 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:43668 (42.6 Kb) TX bytes:43668 (42.6 Kb)
> ra0 Link encap:Ethernet HWaddr 00:11:09:29:46:CE
> inet addr:191.168.0.5 Bcast:191.168.255.255
> Mask:255.255.0.0
> inet6 addr: fe80::211:9ff:fe29:46ce/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> RX packets:1911 errors:0 dropped:0 overruns:0 frame:0
> TX packets:366 errors:1 dropped:1 overruns:0 carrier:0
> collisions:20 txqueuelen:1000
> RX bytes:199427 (194.7 Kb) TX bytes:42512 (41.5 Kb)
> Interrupt:10
--
Clifford Kite Email: "echo
xvgr_yvahk-(E-Mail Removed)|rot13"
/* The signal-to-noise ratio is too low in many [news] groups to make
* them good candidates for archiving.
* --- Mike Moraes, Answers to FAQs about Usenet */