| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 39616 | 2003-11-12 04:28:00 | Problems Installing USB ADSL Ethernet Router in Mandrake 9.1 | [linux] mb0o53 (4863) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 191134 | 2003-11-12 07:25:00 | ..hey im out for a while...please leave comments and stuff for me to look at when i get back :) -jordan |
[linux] mb0o53 (4863) | ||
| 191135 | 2003-11-12 07:35:00 | Run down to DSE and grab another NIC for $20 or less (Depends on if you have WOL or not which you'll not be needing really). Then we'll get it sorted. Its not that hard ot get Linux routing... When you get your second NIC, then we can get started with that :-) |
Chilling_Silently (228) | ||
| 191136 | 2003-11-12 07:36:00 | I suppose I should have added that the rest of the network is running on the 192.168.1.x range. So I've got two LAN's with my PC being the median between them :-) Get another NIC before you go any further :-) |
Chilling_Silently (228) | ||
| 191137 | 2003-11-12 08:59:00 | If you are running it over ethernet then all you should need to set up is a normal LAN connection, with the gateway set to the router IP (or just use DHCP). The router itself handles the ADSL stuff. [I don't have ADSL so I'm not entierly sure.]. |
bmason (508) | ||
| 191138 | 2003-11-12 22:36:00 | OK, got that second NIC - where to from here? | [linux] mb0o53 (4863) | ||
| 191139 | 2003-11-12 23:21:00 | Put this into a .sh file: #Script writting by Raghuram Vijapurapu <vijapurapu[at]gmx[dot]net> #Modified to suit by Chilling_Silence <chilling_silence[at]orcon[dot]net[dot]> PATH=$PATH:/sbin:/usr/sbin ifconfig eth0 down ifconfig eth1 down ifconfig eth0 192.168.0.2 ifconfig eth1 192.168.1.1 route add default gw 192.168.0.1 route add -net 192.168.1.0/24 eth1 modprobe ip_tables iptables --flush iptables --table nat --flush iptables --delete-chain iptables --table nat --delete-chain iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE iptables --append FORWARD --in-interface eth1 -j ACCEPT echo 1 > /proc/sys/net/ipv4/ip_forward #End Chills ipflush This basically set it up so that iptables will forward all packets between the two ethernet cards. My eth0 is 192.168.0.2 and eth1 is 192.168.1.1 The rest of the LAN runs off 192.168.1.x Modify it to your needs, or simply set your up like mine... :-) Hope this helps, post back if you need clarification on things Cheers Chill. |
Chilling_Silently (228) | ||
| 191140 | 2003-11-13 00:15:00 | thanks for that man :) just wondering what app i use to create the .sh file? ...i am very new to linux | [linux] mb0o53 (4863) | ||
| 191141 | 2003-11-13 00:31:00 | Just use a text editor. My favourite one is "nano" :) You will need to chmod it to 744 to make it executable. "chmod 744 filename" | segfault (655) | ||
| 191142 | 2003-11-13 00:32:00 | k wicked will do | [linux] mb0o53 (4863) | ||
| 191143 | 2003-11-13 01:02:00 | ok - used KWrite, and saved it as a plain txt file called script1, then changed the extension to *.sh - hopefully what i was ment to do - then i typed: chmod 744 script1 in the directory i saved it in, it didnt say that it did anything, but also didnt say invalid command, so im guessing it worked...where to from here? | [linux] mb0o53 (4863) | ||
| 1 2 3 4 5 6 | |||||