Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 13 of 13
Originally Posted by danielfareez Yes, correct. I will response to this thread on wednesday, because of malaysia has public holiday till tuesday.. thanks for your advice friend. [root@metweb2 sysconfig]# vi ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Just Joined!
    Join Date
    Feb 2013
    Posts
    8

    Quote Originally Posted by danielfareez View Post
    Yes, correct.

    I will response to this thread on wednesday, because of malaysia has public holiday till tuesday.. thanks for your advice friend.
    [root@metweb2 sysconfig]# vi iptables
    # Firewall configuration written by system-config-firewall
    # Manual customization of this file is not recommended.
    *filter
    :INPUT ACCEPT [0:0]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [0:0]
    -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
    -A INPUT -p icmp -j ACCEPT
    -A INPUT -p icmp -m icmp --icmp-type echo-request -j ACCEPT
    -A INPUT -p icmp -m icmp --icmp-type echo-reply -j ACCEPT

    -A INPUT -i lo -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 53 -j ACCEPT
    -A INPUT -m state --state NEW -m udp -p udp --dport 53 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
    -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
    #-A INPUT -j REJECT --reject-with icmp-host-prohibited
    #-A FORWARD -j REJECT --reject-with icmp-host-prohibited
    COMMIT

    Edited. but still didn't work.

  2. #12
    Just Joined!
    Join Date
    Feb 2013
    Posts
    8
    [root@metweb2 sysconfig]# service iptables status
    Table: filter
    Chain INPUT (policy ACCEPT)
    num target prot opt source destination
    1 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
    2 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
    3 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 8
    4 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 0

    5 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
    6 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:53
    7 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 state NEW udp dpt:53
    8 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:21
    9 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:443
    10 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
    11 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:80

    Chain FORWARD (policy ACCEPT)
    num target prot opt source destination

    Chain OUTPUT (policy ACCEPT)
    num target prot opt source destination

  3. #13
    Just Joined!
    Join Date
    Feb 2013
    Posts
    8
    The problem has been resolve yesterday. I was back to the basic configuration of the network using command line.

    1. I was disable the default gateway which is the status is lo/loop back.
    Code:
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    172.18.64.0     0.0.0.0         255.255.252.0   U         0 0          0 eth1
    169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth1
    0.0.0.0         172.18.64.1     0.0.0.0         UG        0 0          0 lo
    2. Then I add route default gateway to 172.18.64.1.
    Code:
    [root@metweb2 network-scripts]# netstat -rn
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
    172.18.64.0     0.0.0.0         255.255.252.0   U         0 0          0 eth1
    169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth1
    0.0.0.0         172.18.64.1     0.0.0.0         UG        0 0          0 eth1

    It works. Then now I can continue to configuring firewall rules to allow functions on this server e.g ssh, telnet, http, ftp etc.

    Anyway, Thank you so much for all friends here. Your advice, help and response are much appreciated.

  4. $spacer_open
    $spacer_close
Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •