Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Zaurus and NAT

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
defknol
n00b
n00b
User avatar
Posts: 47
Joined: Tue Jul 02, 2002 9:11 pm

Zaurus and NAT

  • Quote

Post by defknol » Tue Aug 12, 2003 10:04 pm

I just got a new Zaurus 5600 :D and finally got it to connect to my box using the vanilla sources 2.4.21.

To get this working, I consulted:
http://docs.zaurus.com/index.php?id=lc_generic
among others

The one thing that I've not been able to do is to access the internet (#3.3 from the above referenced doc) from the Zaurus. I successfully compiled in the stuff from the previous step and ran the following:

Code: Select all

ifconfig usb0 192.168.129.1 netmask 255.255.255.255 up
route add -host 192.168.129.201 usb0
iptables -t nat -F
When I ran the following, I got this error:

Code: Select all

iptables -t nat -A POSTROUTING -j SNAT -o eth0 --to 192.168.1.140
iptables: Invalid argument
I'm not very experiencedwith iptables, but I assume that the IP at the end is supposed to be that of eth0.

I am behind a router/switch doing NAT connected to a cable modem on the internet. What am I supposed to put for MY_IP after --to?

ifconfig -a reveals:

Code: Select all

dummy0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          BROADCAST NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

eth0      Link encap:Ethernet  HWaddr 00:40:33:E4:5D:68  
          inet addr:192.168.1.140  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST NOTRAILERS RUNNING  MTU:1500  Metric:1
          RX packets:177383 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48359 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:89933394 (85.7 Mb)  TX bytes:5246563 (5.0 Mb)
          Interrupt:16 Base address:0xe800 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:87 errors:0 dropped:0 overruns:0 frame:0
          TX packets:87 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:14040 (13.7 Kb)  TX bytes:14040 (13.7 Kb)

usb0      Link encap:Ethernet  HWaddr 5E:BF:EE:63:2E:84  
          inet addr:192.168.129.1  Bcast:192.168.129.255  Mask:255.255.255.255
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:53 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:6491 (6.3 Kb)  TX bytes:908 (908.0 b)

Any insight would be appreciated. Thanks -
Top
thesnowman
Guru
Guru
Posts: 365
Joined: Thu May 08, 2003 3:29 pm
Location: Sydney, Australia

  • Quote

Post by thesnowman » Fri Aug 29, 2003 1:38 pm

Your --to argument should be the IP address of eth0 as you have written.

The problem may be with the iptables package. I had this same problem and read a post somewhere that the iptables package must be compiled against the same kernel version that you are running it under. If you have changed kernel's recently this may be causing your problem. Try:

Code: Select all

emerge iptables
and try it again.
Top
sandcrawler
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 149
Joined: Mon Mar 24, 2003 10:31 pm
Location: SaintLouis, MO

  • Quote

Post by sandcrawler » Fri Aug 29, 2003 8:20 pm

I haven't seen any other replies to this but I have to agree with the above response. We had a similar problem just the other day with iptables. Re-emerging iptables fixed it. We also use the zaurus here and have no trouble with iptables. Heres the line from rules-save:

-A POSTROUTING -s 192.168.0.0/255.255.255.0 -o eth0 -j SNAT --to-source xxx.xxx.xxx.xxx

where all the xxx section is your public iinternet ip address

HTH
Top
Post Reply

3 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic