Upload
dangtu
View
216
Download
1
Embed Size (px)
Citation preview
Name: HUL SOVANNAROTH
SNA 2011B
IP tables Document
Requirements
We have three LAN is LAN Student, LAN Staff and LAN server
Configure DNS, FTP, SAMBA on server Configure IP tables on IP tables PC
1. All client can access samba, FTP and DNS2. Staff can access SSH and remote desktop to server3. Student cannot access Staff except ping4. Staff can remote desktop to student
Tables of content
ContentsI. DNS SERVER.........................................................................................................................................3
1. Install DNS server.............................................................................................................................3
2. Configure FTP..................................................................................................................................7
3. Configure Samba.............................................................................................................................9
4. Configure Telnet............................................................................................................................11
II. Router................................................................................................................................................12
Configure IP address..............................................................................................................................12
Create file script....................................................................................................................................13
Rule allows all clients PING to server and use DNS................................................................................14
Rule allow all clients use samba on server.............................................................................................16
Rule allow all clients use FTP.................................................................................................................17
IP tables DocumentRule allow staff use SSH to server..........................................................................................................19
Rule allow staff use remote Desktop (telnet) to server.........................................................................20
Rule allow LAN student ping to Staff.....................................................................................................21
Rule allow staff remote desktop to LAN student...................................................................................22
III. Configure DHCP.............................................................................................................................24
Install service DHCP...............................................................................................................................24
Rule allow client get IP address from DHCP...........................................................................................26
IP tables DocumentAllow anonymous can create directory
Allow auto rename and upload file
Restart FTP, create folder share and set permission for anonymous
IP tables DocumentAdd script for share file Data on path /srv/DATA
File share to client
Restart services samba
IP tables Document
Create rule Drop all request from client and then we create rule for allow specific port
Rule allows all clients PING to server and use DNS
Run rule iptables
IP tables DocumentLAN student could not access SSH to server
Rule allow staff use remote Desktop (telnet) to server
Result on LAN staff
IP tables DocumentLAN student could not telnet to server
Rule allow LAN student ping to Staff
Result on LAN student ping to LAN staff
IP tables DocumentRule allow staff remote desktop to LAN student
Use mstsc to remote desktop from LAN staff to student
IP tables DocumentConfigure file DHCRELAY and restart services
Rule allow client get IP address from DHCP
IP tables DocumentRun iptables and list rule of iptables by using the following command line
Result on LAN student