~ubuntu-branches/ubuntu/karmic/iptables/karmic

« back to all changes in this revision

Viewing changes to examples/3iptables-ppp_down-rules

  • Committer: Bazaar Package Importer
  • Author(s): Laurence J. Lane
  • Date: 2004-06-15 20:38:42 UTC
  • Revision ID: james.westby@ubuntu.com-20040615203842-o4o634vwht1cix5k
Tags: 1.2.9-10
* Closes: #246037, added default logging level to man pages, requested
  by Max Vozeler. Thanks.
* conslidated all man page patches to 003-man_pages.patch.
* added 006-64_32.patch, CVS pull, Sparc64 and HPPA makefile clean up
  for 64/32-bit builds. Reported by Igor Genibel. Thanks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# 3iptables-ppp_up-rules, v0.6 03/09/2003.
 
4
# Kiryanov Vasiliy, mailto://root@lycos.ru
 
5
#
 
6
# this script run when PPP down and
 
7
# restore iptables RULES that exist before PPP up
 
8
 
 
9
# If you find some errors or missing write me: root@lycos.ru
 
10
#--------------------------------------------------------------
 
11
 
 
12
# restoring iptables RULES
 
13
/sbin/iptables-restore < /tmp/3iptables-ppp_up-SAVE
 
14
 
 
15
#unlink(remove) temp file
 
16
rm -f /tmp/3iptables-ppp_up-SAVE 
 
17
 
 
18
#
 
19
# try '# ifconfig' to see if your ppp interface all right
 
20
# try '# iptables --list --verbose' to see if all rules right