Freesco, NND, CDN, EOS
http://forum.freesco.pl/

TELNET TYLKO DLA ADMINA
http://forum.freesco.pl/viewtopic.php?f=35&t=7792
Strona 1 z 1

Autor:  hds23 [ niedziela, 29 maja 2005, 10:45 ]
Tytuł:  TELNET TYLKO DLA ADMINA

Jakiego wpisu mam dokonać zeby telnet był tylko dla mojego adresu IP 10.0.0.2??

Autor:  Anonymous [ niedziela, 29 maja 2005, 14:56 ]
Tytuł: 

np:

ipfwadm -I -i reject -P tcp -S 0/0 -D 0/0 23
ipfwadm -I -i accept -P tcp -S 10.0.0.2 -D 0/0 23

Autor:  hds23 [ niedziela, 29 maja 2005, 15:52 ]
Tytuł:  telnet

i gdzie dokładnie mam wpisać te dwie linijki??
Mam freesco administrowane zdalnie i nie chce zeby cos poszlo nie tak.

Autor:  Kiler [ niedziela, 29 maja 2005, 16:24 ]
Tytuł: 

Do pliku rc_user (/mnt/router/rc) w sekcji startujacej... A pierwszy raz mozesz bezposrednio w konsoli zeby nie robic niepotrzebnie restartu :)

Autor:  hds23 [ czwartek, 2 czerwca 2005, 12:42 ]
Tytuł:  telnet

Czyli mam to wpisac w pliku rc_user po tych sciezkach gdzie mam wypisane :

. /etc/system.cfg
. /etc/live.cfg
. /etc/chat.pwd

Czy gdzie indziej??

Autor:  Kiler [ czwartek, 2 czerwca 2005, 16:41 ]
Tytuł:  Re: telnet

hds23 pisze:
Czy gdzie indziej??
Gdzie indziej :)
: [/] [] ()
echo -n "Starting rc_user...                    "
# Add commands here you want to execute when booting. Use the fork
# command to launch programs which normally stay in the foreground.
.....TUTAJ.....

Autor:  hds23 [ czwartek, 2 czerwca 2005, 22:09 ]
Tytuł:  telnet

Wielkie dzięki!!!

Autor:  hds23 [ niedziela, 5 czerwca 2005, 22:48 ]
Tytuł:  telnet

wpisałem tam gdzie mi napisales i sprawdzilem , z dalej z kazdego numeru moge sie zalogowac na serwer , co jest nie tak??

Autor:  zciech [ poniedziałek, 6 czerwca 2005, 00:18 ]
Tytuł: 

Po pierwsze primo to nie do sekcji start tylko do sekcji firewall, a po drugie primo po wpisaniu uruchom rc_masq.
: [/] [] ()
#!/bin/sh
#
# User startup/shutdown and firewall script.

. /etc/system.cfg
. /etc/live.cfg
. /etc/chat.pwd

if [ "$1" = firewall ]; then

# Add your custom firewall rules here. Warning, incorrect rules could
# leave your system insecure. $INET always represents the internet
# interface. These rules come before standard system rules. Example:
# reject incomming tcp connections to port 22 from the internet and log
#ipfwadm -I -a reject -P tcp -W $INET -D 0.0.0.0/0 22 -y -o

#   MNIEJ WIECEJ TUTAJ

#----------------------------------------------------------------------
exit; fi

if [ "$1" = stop -o "$1" = restart ]; then

Strona 1 z 1 Strefa czasowa UTC+2godz.
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/