| نحوه ايجاد اتصال adsl در توزيع backtrack |
|
|
| نویسنده L0pht | |
| ۱۹ خرداد ۱۳۸۷ | |
|
سلام دوستان
خوب اتصال ما ADSL و همونطور که می دونید external مودم است . پس : eth0اگر در وادی امنیت اطلاعات و penetration testing فعالیت کرده باشید حتما با این توزیع برخوردی داشته اید. از اونجایی که خودم شخصا به دلیل نبود reference های متعدد در مورد توزیع backtrack به مشکلات زیادی برخوردم . از این لحاظ بهتر دیدم که حداقل اتصال به اینترنت را از طریق این توزیع برای دوستانی که نتونستن این مرحله را با موفقیت پشت سر بگذارن توضیح بدم . «البته طريقهاي كه دوستمان آقاي L0pht توضيح دادهاند در بقيه توزيعها نيز در صورت نصب بسته pppoe كاربرد دارد.» خوب بعد از ورود به محیط کاری terminal را باز می کنیم و سپس برای درک اینکه اترنت ما توسط سیستم شناخته شده است یا خیر این عبارت را تایپ می کنیم : # ifconfig -a برای فهم سویچ های بیشتر این فرمان : # man ifconfig که result در ifconfig -a به این صورت می باشد : eth0 Link encap:Ethernet HWaddr 00:0C:61:00:00:00 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:2360 (2.3 KiB) Interrupt:17 Base address:0xc000 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: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) sit0 Link encap:UNSPEC HWaddr 00-00-00-00-30-30-30-3A-00-00-00-00-00-00-00-00 NOARP MTU:1480 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) خوب خوشبختانه اترنت و اتصال مودم ما به صورت پیش فرض شناخته شده است . چنانچه شناخته نشده بود تایپ می کنیم : # ifconfig eth0 up حالا نوبت به نصب pppoe و ساخت connection است . مراحل را به شرح زیر طی می کنیم : در ابتدا تایپ می کنیم : # pppoe-setup که در result چاپ میشود : Welcome to the Roaring Penguin PPPoE client setup. First, I will run some checks on your system to make sure the PPPoE client is installed properly... Looks good! Now, please enter some information: USER NAME >>> Enter your PPPoE user name (default ): همونطور که در اخرین سطر گفته شده است باید user خود را وارد کنید ( ADSL User ) سپس با زدن enter به این result میرسیم: INTERFACE >>> Enter the Ethernet interface connected to the DSL modem For Solaris, this is likely to be something like /dev/hme0. For Linux, it will be ethn, where 'n' is a number. (default eth0): که باید نوع اتصال مودم را مشخص کنید که وارد می کنیم : eth0 بعد از آن یه demand value میرسیم که پیشنهاد می کنم چیزی وارد نکرده و enter را بزنید مثل زیر Do you want the link to come up on demand, or stay up continuously? If you want it to come up on demand, enter the idle time in seconds after which the link should be dropped. If you want the link to stay up permanently, enter 'no' (two letters, lower-case.) NOTE: Demand-activated links do not interact well with dynamic IP addresses. You may have some problems with demand-activated links. >>> Enter the demand value (default no): که بعد از enter : Please enter the IP address of your ISP's primary DNS server. در قسمت : If your ISP claims that 'the server will provide DNS addresses', enter 'server' (all lower-case) here. If you just press enter, I will assume you know what you are doing and not modify your DNS setup. >>> Enter the DNS information here: Please enter the IP address of your ISP's secondary DNS server. If you just press enter, I will assume there is only one DNS server. >>> Enter the secondary DNS server address here: >>> Enter the DNS information here: یک DNS از ISP را وارد کنید و در قسمت : >>> Enter the secondary DNS server address her یک DNS جهانی مثل : 4.2.2.2 بعد از تکمیل این مرحله نوبت به وارد کردن پسورد کاربری می رسد : PASSWORD >>> Please enter your PPPoE password: >>> Please re-enter your PPPoE password: و در آخرین مرحله شما موظفید تا از این 2 فایروال یکی را انتخاب کرده تا این نصب به پایان برسد. همانطور که در زیر واضح است فایروال اول (STANDALONE) مناسب برای گشت و گذار و عوامل عادی و فایروال دوم (MASQUERADE) مناسب برای یک گذرگاه اینترنتی و یک WebServer که بنا به انتخاب خود 1 یا 2 را وارد می کنید : «توجه کنید که حالت دوم برای زمانی که شما میخواهید به قول معروف internet sharing داشته باشید مناسب است» FIREWALLING Please choose the firewall rules to use. Note that these rules are very basic. You are strongly encouraged to use a more sophisticated firewall setup; however, these will provide basic security. If you are running any servers on your machine, you must choose 'NONE' and set up firewalling yourself. Otherwise, the firewall rules will deny access to all standard servers like Web, e-mail, ftp, etc. If you are using SSH, the rules will block outgoing SSH connections which allocate a privileged source port. The firewall choices are: 0 - NONE: This script will not set any firewall rules. You are responsible for ensuring the security of your machine. You are STRONGLY recommended to use some kind of firewall rules. 1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation 2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway for a LAN >>> Choose a type of firewall (0-2): اگر تمام مراحل را با موفقیت پشت سر گذاشته باشید با پیغام زیر مواجه می شوید : Ethernet Interface: eth0 User name: ..... Activate-on-demand: No Primary DNS: .... Secondary DNS: 4.2.2.2 Firewalling: STANDALONE >>> Accept these settings and adjust configuration files (y/n)? y Adjusting /etc/ppp/pppoe.conf Adjusting /etc/resolv.conf (But first backing it up to /etc/resolv.conf-bak) Adjusting /etc/ppp/pap-secrets and /etc/ppp/chap-secrets (But first backing it up to /etc/ppp/pap-secrets-bak) (But first backing it up to /etc/ppp/chap-secrets-bak) Congratulations, it should be all set up! برای اتصال هم می توانید از این فرمان کمک بگیرید : # pppoe-start که اگر همه چیز درست Set شده باشد : ... Connected! در غیر این صورت time out می دهد. و برای اطلاعات بیشتر هم : # pppoe-status pppoe-status: Link is up and running on interface ppp0 ppp0 Link encap:Point-to-Point Protocol inet addr:85.9.74.158 P-t-P:85.9.68.2 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1 RX packets:3 errors:0 dropped:0 overruns:0 frame:0 TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:30 (30.0 b) TX bytes:37 (37.0 b) و برای اطمینان از سلامت اتصال برای مثال: # ping www.google.com متشکرPING www.l.google.com (74.125.19.147) 56(84) bytes of data. 64 bytes from 74.125.19.147: icmp_seq=1 ttl=241 time=411 ms 64 bytes from 74.125.19.147: icmp_seq=2 ttl=241 time=412 ms 64 bytes from 74.125.19.147: icmp_seq=3 ttl=241 time=413 ms 64 bytes from 74.125.19.147: icmp_seq=4 ttl=241 time=413 ms --- www.l.google.com ping statistics --- 5 packets transmitted, 4 received, 20% packet loss, time 4014ms rtt min/avg/max/mdev = 411.605/412.670/413.088/0.765 ms BT ~ # route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 85.9.68.2 * 255.255.255.255 UH 0 0 0 ppp0 loopback * 255.0.0.0 U 0 0 0 lo default * 0.0.0.0 U 0 0 0 ppp0 # L0pht Snoop-Security |
|
| آخرین بروز رسانی ( ۲۹ خرداد ۱۳۸۷ ) |
| <قبل | بعد> |
|---|
| صفحه اصلی |
| اخبار |
| مقالات |
| جستجوی پیشرفته |
| یزدلاگ در رسانه |
| تازه کاران |
| مدیریت |