Results 1 to 2 of 2

Thread: allow access to spesific domain (not IP)

  1. #1
    Junior Member
    Join Date
    Nov 2007
    Posts
    11
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default allow access to spesific domain (not IP)

    i want my client with ip 192.168.1.1 can access "domain.com" only not else.
    whats is the iptables command?


    Thanks

  2. #2
    Member
    Join Date
    Nov 2011
    Location
    New Delhi, India
    Posts
    45
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Rep Power
    0

    Default

    My friend the thing here is if u right a rule using hostname, Iptable will resolve it through dns and the use ip for that very rule..

    so if you write some thing like this it will anyway not a good idea..

    iptables -A block_outgoing -j DROP -d *.xxx.com

    I will suggest use proxy like squid.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Limit Users access to mail aliases addressing under same domain
    By shqnayaz in forum CentOS / RHEL / Fedora
    Replies: 1
    Last Post: 11th October 2010, 04:34 PM
  2. Replies: 4
    Last Post: 21st September 2010, 06:16 PM
  3. Domain making
    By praveenbhavani in forum Linux software
    Replies: 3
    Last Post: 4th January 2010, 01:15 PM
  4. Replies: 2
    Last Post: 6th June 2008, 01:53 PM
  5. Replies: 1
    Last Post: 30th December 2005, 01:49 AM

Posting Permissions

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