How to use the net card adress to refuse some acess in Linux

How to use the net card adress to refuse some acess in Linux

Post by Dumplin » Sat, 04 Aug 2001 19:14:26



Hi all:

Because the IP adress is dynamic.

Thanks

 
 
 

How to use the net card adress to refuse some acess in Linux

Post by mado » Sun, 05 Aug 2001 03:17:56


you may user -i (interface)

ipchains -A input -i ppp0 ...............


Quote:> Hi all:

> Because the IP adress is dynamic.

> Thanks


 
 
 

1. PPP dial-ins refused, OSR-5 with net100

We're having problems at several client sites running OSR-5 with the
rs500d and net100 patches applied.  PPP is better than it was, but
there are still problems where dial-in PPP connections will work fine
for a while, then will fail to start (usually around 10pm when I'm not
near a system to be able to check anything :-).

I have the system configured so that users logging in through a serial
port are presented with a prompt asking whether they want to start
PPP.  If they want PPP it sets the HOME environment variable and execs
/usr/lib/ppp:
    HOME=/usr/lib/ppp; export HOME
    exec /usr/lib/ppp/ppp

These all are using dynamic IP assignment with entries in the
/etc/ppphosts of the form:
*bill remote=+pool1 flow=rtscts proxy idle=60

Before I installed the net100 patches, this same behaviour would occur
(PPP works for a while then stops), with syslog entries saying the it
couldn't find pool entries once it started failing.  These messages
aren't appearing any more, and I'm still trying to isolate the
problem.

Has anybody else experienced things like this?

These machines are directly connected to the Internet via high speed
lines, CSU/DSU, and routers so there's no need for outgoing PPP, only
dial-in.  Is there any reason to have a pppd running all the time in
this case or can I comment out the startup on /etc/tcp?  The only
thing this process seems to do is generate lots of messages in the
/usr/adm/syslog file of the form:
    Jan  8 08:11:35 tally pppd[282]: can't get passwd for local host
    Jan  8 08:11:35 tally pppd[282]: getppphostent: no local host ID

Bill
--

UUCP:              camco!bill   2835 82nd Avenue S.E. S-100
FAX:           (206) 232-9186   Mercer Island, WA 98040; (206) 947-5591
http://www.celestial.com/
SPEED COSTS MONEY -- HOW FAST DO YOU WANT TO GO?

2. Computer Clock

3. Prevent access to linux server when mac adress does not match ip adress

4. HP OpenMail newbie needs help with setup

5. Problem: multiple net cards + warm boot = one net card???

6. hard disk problems

7. Establishing direct net acess.

8. having some trouble

9. Sendmail: refusing adress @inet.de ??

10. 3c509 Refuses to work under Linux (the other nic also refuses)

11. RedHat5.1, Dell Lat CPi, 3c575 - linux "sees" memory card not net card

12. How to Remote Acess using X or VNC ?

13. how to get ip adress of MX host for some email adress