Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Expert Iptables help needed
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
neilhwatson
l33t
l33t


Joined: 06 Feb 2003
Posts: 719
Location: Canada

PostPosted: Wed Mar 19, 2003 3:54 pm    Post subject: Expert Iptables help needed Reply with quote

I wish to be able to access my IPS's usenet server from work.

Problem: my isp only access connections from local connections (my home).

Solution: Use iptables to snat and dnat my connection from work:

Point my usenet reader at work to my home ip, port 119
Have iptables accept that connection, change to source to its own ip and redirect the packet to my ISP's news server.

I have iptables set up and running and use snat for local machines on my home network.

Does anyone know how to do this?
_________________
The true guru is a teacher.
Neil Watson
Back to top
View user's profile Send private message
px
Guru
Guru


Joined: 26 Sep 2002
Posts: 497
Location: Metz, France

PostPosted: Wed Mar 19, 2003 4:22 pm    Post subject: Reply with quote

I have done something like this one time with shorewall (it's only a set of config file to configure iptables)
You just have to add a simple line in your rules.conf...
_________________
Nous autres, mordus d'informatique, préférons par-dessus tout passer notre temps à bidouiller nos ordinateurs, plutôt que les utiliser pour faire quelque chose de productif. [Dave Barry]
Back to top
View user's profile Send private message
batkiwi
n00b
n00b


Joined: 01 Dec 2002
Posts: 12

PostPosted: Wed Mar 19, 2003 7:47 pm    Post subject: Reply with quote

I would ssh in, tunneling the news port, instead.

Even better, set up leafnode (easy with gentoo, it just works ootb), then ssh in and forward to your local news cache.

If you do what you're talking about, you're likely to get kicked off of your isp, b/c you'd be running what is basically an open news proxy.

ANYONE with your ip could post to your isp's news server.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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