LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-14-2001, 05:39 AM   #1
black_adder2
LQ Newbie
 
Registered: Sep 2001
Posts: 3

Rep: Reputation: 0
Lightbulb IP Masq needs update - questions


This is the script I use now:

#config IPMASQ
echo "1" > /proc/sys/net/ipv4/ip_forward
/sbin/ifconfig eth1 down
/sbin/ifconfig eth1 192.168.1.1 broadcast 0.0.0.255 netmask 255.255.255.0
/sbin/ipfwadm-wrapper -F -p deny
/sbin/ipfwadm-wrapper -F -a m -b -S 192.168.1.0/24 -D 0.0.0.0/0


I think it is time to move onto ipchains or the newer stuff... the only problem I have now is if I want to host a game (on 1 of my windows clients in the network), I cannot.

Can anyone write a replacement script that will work like the above and allow me to have a specific port cleared up? The specific is 2234, for Operation: Flashpoint (great game, but make sure you have at least a fully loaded PIII 850 for it).

Thanks ahead, sorry I am such a newb, even though I have been running a masq for years it still confuses me and as much as I read I am stuck.

 
Old 09-14-2001, 05:43 AM   #2
black_adder2
LQ Newbie
 
Registered: Sep 2001
Posts: 3

Original Poster
Rep: Reputation: 0
add

Output of my ifconfig, just so you see eth0 is the 'real' setup and eth1 is for the internal. (my.ip.is.here is an edit of course, to reduce hacks by people that know even less than me about linux).

eth0 Link encap:Ethernet HWaddr 00:60:97:34:40:F4
inet addr:my.ip.is.here Bcast:my.bc.ip.here Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10226310 errors:0 dropped:0 overruns:0 frame:0
TX packets:7811185 errors:0 dropped:0 overruns:0 carrier:0
collisions:22143 txqueuelen:100
Interrupt:11 Base address:0xee80

eth1 Link encap:Ethernet HWaddr 00:10:4B:33:0A:9E
inet addr:192.168.1.1 Bcast:0.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7571236 errors:0 dropped:0 overruns:0 frame:0
TX packets:9538869 errors:0 dropped:0 overruns:0 carrier:0
collisions:21312 txqueuelen:100
Interrupt:9 Base address:0xed80

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:42 errors:0 dropped:0 overruns:0 frame:0
TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

Last edited by black_adder2; 09-14-2001 at 05:45 AM.
 
Old 09-26-2001, 12:41 PM   #3
black_adder2
LQ Newbie
 
Registered: Sep 2001
Posts: 3

Original Poster
Rep: Reputation: 0
bump

bumpity bump
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mandrake 9.0 update questions. rossAINTfakin Linux - Newbie 1 08-03-2004 05:37 PM
mandrake 9.0 update questions. rossAINTfakin Mandriva 0 08-02-2004 01:32 PM
Red Hat LInux UPDATE QUESTIONS - PLEASE HELP ME! javacvb Linux - Distributions 6 05-23-2003 09:49 AM
Mandrake Update, Questions ?? jct842 Linux - General 6 11-27-2002 02:26 PM
firewall script run at boot -> no masq, rerun manually -> masq worx Griffon26 Linux - Networking 2 06-24-2002 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration