LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Closed Thread
  Search this Thread
Old 07-03-2005, 01:57 AM   #1
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Rep: Reputation: 30
Time Based Nat


Hello All

i own a colony ISP. i am using redhat9 and using it for nat.i have a 512 kbps wireless link and sharing it with my colony members.i am using transparent squid too.the following is my Nat configuration

/sbin/iptables -t nat -F
/sbin/iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128
/sbin/iptables -t nat -A POSTROUTING -s 139.61.0.0/16 -o eth0 -j MASQUERADE

My Transparent squid configuration

httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

#http_access allow our_networks
acl our_networks src 139.61.0.0/16
http_access allow our_networks

# And finally deny all other access to this proxy
http_access allow localhost
http_access deny all


now what i want is control some ip for night surfing some for day surfing some for unlimited surfing. i know this can be done by writing a script and execute it by using cron. but what is that script.

Thanking You
 
Old 07-03-2005, 08:32 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

The answered thread is http://www.linuxquestions.org/questi...hreadid=339499
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux based gateway for time-based wireless service. TotalDefiance Linux - Software 0 10-03-2005 07:06 PM
Time Based Nat roopunix Linux - Networking 2 07-03-2005 09:59 AM
NAT doesnt work for me this time.. stradivarius Linux - Networking 0 04-17-2004 01:00 PM
NAT doesnt work for me this time.. stradivarius Linux - Networking 0 04-17-2004 12:50 PM
Time based applicatioon qmon2002 Programming 7 02-05-2003 12:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration