Copyright © GrATis-Tis.BloGSPoT.CoM



Setting Router on Ubuntu

for ROUTER :
plug 2 card to set your router ( exp. eth0 and eth1 )
**
# assum ip for adsl : 192.168.1.1
# config for eth0 :
- connect to hub or switch
- ip. : 192.168.1.2
sub mask. : 255.255.255.0
gate way : 192.168.1.1 ( from ip ADSL )
# config for eth1 :
- connect to hub or switch
- ip. : 192.168.0.1 ( this ip is gateway for the other client )
sub mask. : 255.255.255.0
gate way : 192.168.1.2 ( from ip eth0 )
# set DNS to : 192.168.1.1
*** SCRIPT
>sudo su
>route add 192.168.1.2 gw 192.168.1.1
# instal firestater from repository
- type eth0 to ethernet that connect to adsl
- type eth1 to ethernet that connect to LAN
# config for firestater :
- in tab Policy :
1. -> switch Editing to Inbound Traffic Policy
-> Add Rule (in Allow Service area )
-> switch Allow Service to DNS
-> switch Anyone in "When the source is "
-> press OK
2. -> switch Editing to Outbound Traffic Policy
-> Add Rule (in Allow Service area )
-> switch Allow Service to DNS
-> switch Anyone in "When the source is "

No comments: