Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ip masquerading
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
stefanonafets
l33t
l33t


Joined: 10 Feb 2003
Posts: 644

PostPosted: Thu Mar 13, 2003 7:54 pm    Post subject: ip masquerading Reply with quote

Salve a tutti.
Allora, il problema che ho è che ogni volta che riavvio la LinuxBox, per poter accedere ad internet tramite il pc con su win devo ridare i comandi
Code:
#iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

e
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward


Non c'è un modo per automatizzare il processo e fargli compiere queste operazioni in fase di boot?
Grazie...
_________________
registered Linux user number #411324
sed 's/ke/che/g'

<The Deployment Slave is initializing>
Back to top
View user's profile Send private message
teknux
Guru
Guru


Joined: 19 Feb 2003
Posts: 517
Location: Rome, IT

PostPosted: Thu Mar 13, 2003 8:28 pm    Post subject: Reply with quote

è sufficente che tu aggiunga quei comandi (e tutti quelli che vuoi far partire ad ogni boot...) in

/etc/conf.d/local.start

c'è anche un /etc/conf.d/local.stop nel caso tu voglia fermare qualcosa.
saluti,
tek
Back to top
View user's profile Send private message
Ginko
Guru
Guru


Joined: 01 May 2002
Posts: 371
Location: nearby my linux laptop

PostPosted: Fri Mar 14, 2003 8:36 am    Post subject: Reply with quote

Attiva iptables con

Code:
rc-update add iptables default


dopodiche' configura iptables e salva la tua rulebase sul file

Code:
/var/lib/iptables/rules-save


mediante il comando

Code:
iptables-save > /var/lib/iptables/rules-save


Ad ogni reboot, iptables ri-attivera' automaticamente le regole salvate e
l'ip forwarding (vedi /etc/init.d/iptables).

--Gianluca
Back to top
View user's profile Send private message
greg_g
Retired Dev
Retired Dev


Joined: 02 Mar 2003
Posts: 180

PostPosted: Fri Mar 14, 2003 7:26 pm    Post subject: Reply with quote

... e per il forwarding basta modificare l'opzione opportuna
in /etc/sysctl.conf (file che viene letto da uno script nel runlevel boot)
Back to top
View user's profile Send private message
JuradaXP
n00b
n00b


Joined: 19 Mar 2003
Posts: 16
Location: Jesolo

PostPosted: Wed Mar 19, 2003 10:26 pm    Post subject: Reply with quote

O se vuoi ciucciarti una mia minihowto.. (l'avevo fatta per redhat però, non so qui i file di conf se sono gli stessi.).

http://www.forumfree.net/index.php?act=ST&f=6882&t=41244&s=74a3817ce6fbf1a0ed5520e588e05584
_________________
http://knoppyx.da.ru (linux solo per neofiti) - http://sitone.da.ru (informatica VM18)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum